Class InboundThreadPool

    • Constructor Detail

      • InboundThreadPool

        public InboundThreadPool​(int corePoolSize,
                                 int maximumPoolSize,
                                 long keepAliveTime,
                                 TimeUnit unit,
                                 BlockingQueue<Runnable> workQueue)
        Constructor for the Inbound thread poll
        Parameters:
        corePoolSize - - number of threads to keep in the pool, even if they are idle
        maximumPoolSize - - the maximum number of threads to allow in the pool
        keepAliveTime - - this is the maximum time that excess idle threads will wait for new tasks before terminating.
        unit - - the time unit for the keepAliveTime argument.
        workQueue - - the queue to use for holding tasks before they are executed.
      • InboundThreadPool

        public InboundThreadPool()
        Default Constructor for the thread pool and will use all the values as default
      • InboundThreadPool

        public InboundThreadPool​(int corePoolSize,
                                 int maxPoolSize,
                                 long keepAliveTime,
                                 int qlen,
                                 String threadGroup,
                                 String threadIdPrefix)
        Constructor for the InboundThreadPool
        Parameters:
        corePoolSize - - number of threads to keep in the pool, even if they are idle
        maxPoolSize - - the maximum number of threads to allow in the pool
        keepAliveTime - - this is the maximum time that excess idle threads will wait for new tasks before terminating.
        qlen - - Thread Blocking Queue length
        threadGroup - - ThreadGroup name
        threadIdPrefix - - Thread id prefix