DATATYPE - The type of objects to be queuedpublic interface IConcurrentCollector<DATATYPE>
queueObject(Object) method).| Modifier and Type | Method and Description |
|---|---|
int |
getQueueLength() |
boolean |
isStopped()
Check if this collector is already stopped.
|
ESuccess |
queueObject(DATATYPE aObject)
Submit an object to the queue.
|
ESuccess |
stopQueuingNewObjects()
Stop taking new objects in the collector.
|
@Nonnull ESuccess queueObject(@Nonnull DATATYPE aObject)
aObject - The object to submit. May not be null.ESuccess@Nonnegative int getQueueLength()
@Nonnull ESuccess stopQueuingNewObjects()
ESuccessboolean isStopped()
true if the collector is stopped, false
otherwise.Copyright © 2006–2014 phloc systems. All rights reserved.