| Package | Description |
|---|---|
| com.hubspot.slack.client.concurrency |
| Modifier and Type | Method and Description |
|---|---|
MoreExecutors.ThreadPoolExecutorBuilder |
MoreExecutors.ThreadPoolExecutorBuilder.clearBlockWhenFull()
Disable block when full.
|
MoreExecutors.ThreadPoolExecutorBuilder |
MoreExecutors.ThreadPoolExecutorBuilder.setBlockWhenFull(int backlogSize)
Enable block when full.
|
MoreExecutors.ThreadPoolExecutorBuilder |
MoreExecutors.ThreadPoolExecutorBuilder.setFair(boolean fair)
If true, it will use a fair queue implementation for blockWhenFull.
|
MoreExecutors.ThreadPoolExecutorBuilder |
MoreExecutors.ThreadPoolExecutorBuilder.setFixed(boolean fixed)
Sets the queue to use a fixed set of threads.
|
MoreExecutors.ThreadPoolExecutorBuilder |
MoreExecutors.ThreadPoolExecutorBuilder.setFollowThreadLocals(boolean followThreadLocals)
Set whether or not to attempt to follow thread locals.
|
MoreExecutors.ThreadPoolExecutorBuilder |
MoreExecutors.ThreadPoolExecutorBuilder.setKeepAlive(long keepAlive,
TimeUnit timeUnit)
Sets the keep alive time.
|
MoreExecutors.ThreadPoolExecutorBuilder |
MoreExecutors.ThreadPoolExecutorBuilder.setMaxSize(int maxSize)
Sets the max number of threads in the thread pool.
|
MoreExecutors.ThreadPoolExecutorBuilder |
MoreExecutors.ThreadPoolExecutorBuilder.setShutdownTimeout(long timeout,
TimeUnit timeUnit)
Set the timeout for shutdown of this executor service
Defaults to 30 seconds
|
MoreExecutors.ThreadPoolExecutorBuilder |
MoreExecutors.ThreadPoolExecutorBuilder.setUnbounded(boolean unbounded)
If unbounded, the thread pool will behave like newCachedThreadPool().
|
MoreExecutors.ThreadPoolExecutorBuilder |
MoreExecutors.ThreadPoolExecutorBuilder.setWorkQueue(BlockingQueue<Runnable> workQueue)
Sets the work queue, which defaults to a LinkedBlockingQueue unless
blockWhenFull is true.
|
static MoreExecutors.ThreadPoolExecutorBuilder |
MoreExecutors.threadPoolDaemonExecutorBuilder(String namePrefix) |
static MoreExecutors.ThreadPoolExecutorBuilder |
MoreExecutors.threadPoolNonDaemonExecutorBuilder(String namePrefix)
An opinionated builder for a new executor.
|
Copyright © 2020. All rights reserved.