public class SequencedQueue extends BoundedWorkQueue
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList |
statusCbL
The status cb L.
|
cpm, numberElementsInQueue, queue, queueMaxSize, queueName, WAIT_TIMEOUT| Constructor and Description |
|---|
SequencedQueue(int aQueueSize,
String aQueueName,
CPMEngine aCpmEngine)
Initialize this queue.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
dequeue()
Removes an object from the front of the queue according to FIFO model.
|
Object |
dequeue(long aTimeout)
Returns an object from the queue.
|
protected void |
doNotifyListeners(Object aCas,
org.apache.uima.collection.EntityProcessStatus aEntityProcStatus)
Notifies all configured listeners.
|
void |
invalidate(org.apache.uima.cas.CAS[] aCasObjectList)
Invalidate.
|
enqueue, getCapacity, getCurrentSize, getNameprotected ArrayList statusCbL
public Object dequeue()
dequeue in class BoundedWorkQueuepublic Object dequeue(long aTimeout)
dequeue in class BoundedWorkQueueaTimeout - -
max millis to wait for an objectpublic void invalidate(org.apache.uima.cas.CAS[] aCasObjectList)
BoundedWorkQueueinvalidate in class BoundedWorkQueueaCasObjectList - the a cas object listprotected void doNotifyListeners(Object aCas, org.apache.uima.collection.EntityProcessStatus aEntityProcStatus)
aCas - -
Cas to pass to listeneraEntityProcStatus - -
status object containing exceptions and trace infoCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.