static ThreadsPooling.Builder
|
ThreadsPooling.builder()
|
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withConcurrentThreadsRunning(int concurrentThreadsRunning)
|
Sets the normally amount of concurrent
running threads - default is '4'.
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withImmediatelyRunRejectedTask()
|
Sets the rejected execution handler that
will be used when a new thread cannot be
included inside the threads queue (due to capacity
restrictions) that immediately runs
the rejected thread.
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withKeepAliveInDays(long keepAliveTime)
|
Sets the keep alive time, which is the
amount of time that threads may remain idle before
being terminated.
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withKeepAliveInHours(long keepAliveTime)
|
Sets the keep alive time, which is the
amount of time that threads may remain idle before
being terminated.
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withKeepAliveInMicroseconds(long keepAliveTime)
|
Sets the keep alive time, which is the
amount of time that threads may remain idle before
being terminated.
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withKeepAliveInMilliseconds(long keepAliveTime)
|
Sets the keep alive time, which is the
amount of time that threads may remain idle before
being terminated.
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withKeepAliveInMinutes(long keepAliveTime)
|
Sets the keep alive time, which is the
amount of time that threads may remain idle before
being terminated.
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withKeepAliveInNanoseconds(long keepAliveTime)
|
Sets the keep alive time, which is the
amount of time that threads may remain idle before
being terminated.
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withKeepAliveInSeconds(long keepAliveTime)
|
Sets the keep alive time, which is the
amount of time that threads may remain idle before
being terminated.
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withMaximumPoolSize(int maximumPoolSize)
|
Sets the maximum amount of concurrent
running threads - default is '8'.
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withNoActionOnTaskRejected()
|
Sets the rejected execution handler that
will be used when a new thread cannot be
included inside the threads queue (due to capacity
restrictions) that does nothing.
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withQueueCapacity(int queueCapacity)
|
Sets the queue capacity - default is '100'.
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withRejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler handler)
|
Sets the rejected execution handler that
will be used when a new thread cannot be
included inside the threads queue (due to capacity
restrictions) - can be null ,
which will be the
default rejected
handler.
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withRunningTaskWhenAllCompleted()
|
Sets the rejected execution handler that
will be used when a new thread cannot be
included inside the threads queue (due to capacity
restrictions) that runs the rejected
thread after requesting the shutdown of the executor.
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withThread(java.lang.Runnable thread)
|
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withThreadFactory(java.util.concurrent.ThreadFactory threadFactory)
|
Sets the thread factory that will be used
for creating threads - can be null .
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withThreads(java.lang.Runnable... threads)
|
|
ThreadsPooling.Builder
|
ThreadsPooling.Builder.withTimeUnit(java.util.concurrent.TimeUnit timeUnit)
|
|