Package org.apache.hadoop.hbase.thrift
Class CallQueue
java.lang.Object
org.apache.hadoop.hbase.thrift.CallQueue
- All Implemented Interfaces:
Iterable<Runnable>,Collection<Runnable>,BlockingQueue<Runnable>,Queue<Runnable>
A BlockingQueue reports waiting time in queue and queue length to ThriftMetrics.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final ThriftMetricsprivate final BlockingQueue<CallQueue.Call> -
Constructor Summary
ConstructorsConstructorDescriptionCallQueue(BlockingQueue<CallQueue.Call> underlyingQueue, ThriftMetrics metrics) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends Runnable> elements) voidclear()booleanbooleancontainsAll(Collection<?> elements) intdrainTo(Collection<? super Runnable> destination) intdrainTo(Collection<? super Runnable> destination, int maxElements) element()booleanisEmpty()iterator()private static longnow()booleanbooleanpeek()poll()voidintremove()booleanbooleanremoveAll(Collection<?> elements) booleanretainAll(Collection<?> elements) intsize()take()Object[]toArray()<T> T[]toArray(T[] array) private voidupdateMetrics(CallQueue.Call result) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream
-
Field Details
-
LOG
-
underlyingQueue
-
metrics
-
-
Constructor Details
-
CallQueue
-
-
Method Details
-
now
-
poll
-
updateMetrics
-
poll
- Specified by:
pollin interfaceBlockingQueue<Runnable>- Throws:
InterruptedException
-
remove
-
take
- Specified by:
takein interfaceBlockingQueue<Runnable>- Throws:
InterruptedException
-
drainTo
- Specified by:
drainToin interfaceBlockingQueue<Runnable>
-
drainTo
- Specified by:
drainToin interfaceBlockingQueue<Runnable>
-
offer
-
offer
- Specified by:
offerin interfaceBlockingQueue<Runnable>- Throws:
InterruptedException
-
put
- Specified by:
putin interfaceBlockingQueue<Runnable>- Throws:
InterruptedException
-
add
- Specified by:
addin interfaceBlockingQueue<Runnable>- Specified by:
addin interfaceCollection<Runnable>- Specified by:
addin interfaceQueue<Runnable>
-
addAll
- Specified by:
addAllin interfaceCollection<Runnable>
-
element
-
peek
-
clear
- Specified by:
clearin interfaceCollection<Runnable>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Runnable>
-
isEmpty
- Specified by:
isEmptyin interfaceCollection<Runnable>
-
iterator
-
removeAll
- Specified by:
removeAllin interfaceCollection<Runnable>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Runnable>
-
size
- Specified by:
sizein interfaceCollection<Runnable>
-
toArray
- Specified by:
toArrayin interfaceCollection<Runnable>
-
toArray
- Specified by:
toArrayin interfaceCollection<Runnable>
-
contains
- Specified by:
containsin interfaceBlockingQueue<Runnable>- Specified by:
containsin interfaceCollection<Runnable>
-
remainingCapacity
- Specified by:
remainingCapacityin interfaceBlockingQueue<Runnable>
-
remove
- Specified by:
removein interfaceBlockingQueue<Runnable>- Specified by:
removein interfaceCollection<Runnable>
-