Tabnine Logo
CallQueue.put
Code IndexAdd Tabnine to your IDE (free)

How to use
put
method
in
org.apache.hadoop.hbase.thrift.CallQueue

Best Java code snippets using org.apache.hadoop.hbase.thrift.CallQueue.put (Showing top 3 results out of 315)

origin: apache/hbase

@Test
public void testPutTake() throws Exception {
 ThriftMetrics metrics = createMetrics();
 CallQueue callQueue = new CallQueue(new LinkedBlockingQueue<>(), metrics);
 for (int i = 0; i < elementsAdded; ++i) {
  callQueue.put(createDummyRunnable());
 }
 for (int i = 0; i < elementsRemoved; ++i) {
  callQueue.take();
 }
 verifyMetrics(metrics, "timeInQueue_num_ops", elementsRemoved);
}
origin: com.aliyun.hbase/alihbase-thrift

@Test
public void testPutTake() throws Exception {
 ThriftMetrics metrics = createMetrics();
 CallQueue callQueue = new CallQueue(new LinkedBlockingQueue<>(), metrics);
 for (int i = 0; i < elementsAdded; ++i) {
  callQueue.put(createDummyRunnable());
 }
 for (int i = 0; i < elementsRemoved; ++i) {
  callQueue.take();
 }
 verifyMetrics(metrics, "timeInQueue_num_ops", elementsRemoved);
}
origin: org.apache.hbase/hbase-thrift

@Test
public void testPutTake() throws Exception {
 ThriftMetrics metrics = createMetrics();
 CallQueue callQueue = new CallQueue(new LinkedBlockingQueue<>(), metrics);
 for (int i = 0; i < elementsAdded; ++i) {
  callQueue.put(createDummyRunnable());
 }
 for (int i = 0; i < elementsRemoved; ++i) {
  callQueue.take();
 }
 verifyMetrics(metrics, "timeInQueue_num_ops", elementsRemoved);
}
org.apache.hadoop.hbase.thriftCallQueueput

Popular methods of CallQueue

  • <init>
  • drainTo
  • size
  • updateMetrics
  • offer
  • poll
  • take

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now