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 Type
    Method
    Description
    int
     
    boolean
     
    boolean
    Check if this collector is already stopped.
  • Method Details

    • isQueueEmpty

      boolean isQueueEmpty()
      Returns:
      true if the queue is empty, false otherwise.
    • getQueueLength

      @Nonnegative int getQueueLength()
      Returns:
      The number of objects currently in the queue.
    • isStopped

      boolean isStopped()
      Check if this collector is already stopped.
      Returns:
      true if the collector is stopped, false otherwise.