congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CallQueue.poll
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/hbase

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

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

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

Popular methods of CallQueue

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

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JPanel (javax.swing)
  • Top 12 Jupyter Notebook extensions
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