Class ConcurrentCollectorMultiple<DATATYPE>

    • Field Detail

      • DEFAULT_MAX_PERFORM_COUNT

        public static final int DEFAULT_MAX_PERFORM_COUNT
        The default number of objects to be put in the queue for execution.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ConcurrentCollectorMultiple

        public ConcurrentCollectorMultiple​(@Nonnegative
                                           int nMaxQueueSize,
                                           @Nonnegative
                                           int nMaxPerformCount)
        Constructor.
        Parameters:
        nMaxQueueSize - The maximum number of items that can be in the queue. Must be > 0.
        nMaxPerformCount - The maximum number of objects to be put in the queue for execution. Must be > 0.
      • ConcurrentCollectorMultiple

        public ConcurrentCollectorMultiple​(@Nonnull
                                           BlockingQueue<Object> aQueue,
                                           @Nonnegative
                                           int nMaxPerformCount)
        Constructor using an existing BlockingQueue.
        Parameters:
        aQueue - BlockingQueue to use. May not be null.
        nMaxPerformCount - The maximum number of objects to be put in the list for execution. Must be > 0.