Interface IConcurrentCollector
- All Known Subinterfaces:
IMutableConcurrentCollector<DATATYPE>
- All Known Implementing Classes:
AbstractConcurrentCollector,ConcurrentCollectorMultiple,ConcurrentCollectorSingle
public interface IConcurrentCollector
Base interface for a concurrent queue worker.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleanCheck if this collector is already stopped.
-
Method Details
-
isQueueEmpty
boolean isQueueEmpty()- Returns:
trueif the queue is empty,falseotherwise.
-
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.
-