|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.concurrent.LinkedBlockingQueue<java.lang.Runnable>
org.apache.uima.aae.spi.transport.vm.UimaVmQueue
public class UimaVmQueue
This is a JMX wrapper around the LinkedBlockingQueue. It exposes the following queue
statistics:
| Constructor Summary | |
|---|---|
UimaVmQueue()
|
|
| Method Summary | |
|---|---|
int |
getConsumerCount()
Returns total number of concurrent threads consuming work from this queue. |
long |
getDequeueCount()
Returns total number of items dequeued so far |
int |
getQueueSize()
Returns the current number of items in the queue. |
void |
reset()
Resets both the queue size and dequeue count to zero |
void |
setConsumerCount(int aConsumerCount)
Sets the number of concurrent threads consuming work from this queue |
java.lang.Runnable |
take()
Override of the method in the super class to enable counting of items taken (dequeued) off the queue. |
| Methods inherited from class java.util.concurrent.LinkedBlockingQueue |
|---|
clear, drainTo, drainTo, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, size, toArray, toArray, toString |
| Methods inherited from class java.util.AbstractQueue |
|---|
add, addAll, element, remove |
| Methods inherited from class java.util.AbstractCollection |
|---|
contains, containsAll, isEmpty, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.concurrent.BlockingQueue |
|---|
add, contains |
| Methods inherited from interface java.util.Queue |
|---|
element, remove |
| Methods inherited from interface java.util.Collection |
|---|
addAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll |
| Constructor Detail |
|---|
public UimaVmQueue()
| Method Detail |
|---|
public int getQueueSize()
getQueueSize in interface UimaVmQueueMBeanpublic long getDequeueCount()
getDequeueCount in interface UimaVmQueueMBean
public java.lang.Runnable take()
throws java.lang.InterruptedException
take in interface java.util.concurrent.BlockingQueue<java.lang.Runnable>take in class java.util.concurrent.LinkedBlockingQueue<java.lang.Runnable>java.lang.InterruptedExceptionpublic int getConsumerCount()
getConsumerCount in interface UimaVmQueueMBeanpublic void setConsumerCount(int aConsumerCount)
aConsumerCount - - number of consuming threadspublic void reset()
reset in interface UimaVmQueueMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||