Interface IConcurrentCollector
-
- All Known Subinterfaces:
IMutableConcurrentCollector<DATATYPE>
- All Known Implementing Classes:
AbstractConcurrentCollector,ConcurrentCollectorMultiple,ConcurrentCollectorSingle
public interface IConcurrentCollectorBase interface for a concurrent queue worker.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetQueueLength()booleanisQueueEmpty()booleanisStopped()Check if this collector is already stopped.
-
-
-
Method Detail
-
isQueueEmpty
boolean isQueueEmpty()
- Returns:
trueif the queue is empty,falseotherwise.
-
getQueueLength
@Nonnegative int getQueueLength()
- Returns:
- The number of objects currently in the queue.
-
isStopped
boolean isStopped()
Check if this collector is already stopped.- Returns:
trueif the collector is stopped,falseotherwise.
-
-