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

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

Best Java code snippets using org.apache.hadoop.hbase.thrift.CallQueue.offer (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.thriftCallQueueoffer

Popular methods of CallQueue

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

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 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