Class QueueConsumingThreadPoolOptions<T>

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class QueueConsumingThreadPoolOptions<T>
    extends java.lang.Object
    implements java.lang.Cloneable
    Queue consuming thread pool options.
    Since:
    17.0.0
    • Constructor Detail

      • QueueConsumingThreadPoolOptions

        public QueueConsumingThreadPoolOptions()
    • Method Detail

      • getMovingAverageWaitTimeInSeconds

        public java.lang.Integer getMovingAverageWaitTimeInSeconds()
        Returns the movingAverageWaitTimeInSeconds.
        Returns:
        the movingAverageWaitTimeInSeconds
        Since:
        17.0.0
      • getQueueCapacity

        public java.lang.Integer getQueueCapacity()
        Returns the queueCapacity.
        Returns:
        the queueCapacity
        Since:
        17.0.0
      • getProcessThreadName

        public java.lang.String getProcessThreadName()
        Returns the processThreadName.
        Returns:
        the processThreadName
        Since:
        17.0.0
      • getNumberOfProcessThreads

        public java.lang.Integer getNumberOfProcessThreads()
        Returns the numberOfProcessThreads.
        Returns:
        the numberOfProcessThreads
        Since:
        17.0.0
      • getMetricsCalculatorThreadName

        public java.lang.String getMetricsCalculatorThreadName()
        Returns the metricsCalculatorThreadName.
        Returns:
        the metricsCalculatorThreadName
        Since:
        17.0.0
      • getOnRejectHandler

        public java.util.function.Consumer<java.lang.Runnable> getOnRejectHandler()
        Returns the onRejectHandler.
        Returns:
        the onRejectHandler
        Since:
        17.0.0
      • getOnDuplicatedItemRejectedHandler

        public java.util.function.BiConsumer<java.lang.Runnable,​T> getOnDuplicatedItemRejectedHandler()
        Returns the onDuplicatedItemRejectedHandler.
        Returns:
        the onDuplicatedItemRejectedHandler
        Since:
        17.0.0
      • builder

        public static <T> QueueConsumingThreadPoolOptions.Builder<T> builder()
        Builder for queue consuming thread pool options.
        Type Parameters:
        T - the queue items identifier type
        Since:
        17.0.0