Class FairOrderedDownstreamThreadPoolExecutor

    • Constructor Detail

      • FairOrderedDownstreamThreadPoolExecutor

        public FairOrderedDownstreamThreadPoolExecutor​(int corePoolSize)
        Creates a new instance.
        Parameters:
        corePoolSize - the maximum number of active threads
      • FairOrderedDownstreamThreadPoolExecutor

        public FairOrderedDownstreamThreadPoolExecutor​(int corePoolSize,
                                                       long keepAliveTime,
                                                       java.util.concurrent.TimeUnit unit)
        Creates a new instance.
        Parameters:
        corePoolSize - the maximum number of active threads
        keepAliveTime - the amount of time for an inactive thread to shut itself down
        unit - the TimeUnit of keepAliveTime
      • FairOrderedDownstreamThreadPoolExecutor

        public FairOrderedDownstreamThreadPoolExecutor​(int corePoolSize,
                                                       long keepAliveTime,
                                                       java.util.concurrent.TimeUnit unit,
                                                       java.util.concurrent.ThreadFactory threadFactory)
        Creates a new instance.
        Parameters:
        corePoolSize - the maximum number of active threads
        keepAliveTime - the amount of time for an inactive thread to shut itself down
        unit - the TimeUnit of keepAliveTime
        threadFactory - the ThreadFactory of this pool