|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.BoundedExecutorServiceWrapper.Builder
public static class BoundedExecutorServiceWrapper.Builder
Constructor Summary | |
---|---|
BoundedExecutorServiceWrapper.Builder()
|
Method Summary | |
---|---|
BoundedExecutorServiceWrapper |
build()
|
BoundedExecutorServiceWrapper.Builder |
withConcurrency(int concurrency)
Set the max number of concurrent operations supported by the ExecutorService |
BoundedExecutorServiceWrapper.Builder |
withExecutorService(Supplier<com.google.common.util.concurrent.ListeningExecutorService> executorServiceSupplier)
Provide a custom executor service supplier. |
BoundedExecutorServiceWrapper.Builder |
withShutdownTimeout(org.joda.time.Duration shutdownTimeout)
Set the timeout duration for shutting down the executor service. |
BoundedExecutorServiceWrapper.Builder |
withThreadPoolName(String threadPoolName)
Set the thread pool name used by the executor service that is managed by the wrapper. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BoundedExecutorServiceWrapper.Builder()
Method Detail |
---|
public BoundedExecutorServiceWrapper.Builder withConcurrency(int concurrency)
concurrency
- The max number of concurrent operations.
public BoundedExecutorServiceWrapper.Builder withShutdownTimeout(@Nonnull org.joda.time.Duration shutdownTimeout)
shutdownTimeout
- The timeout duration for shutting down the executor service.
public BoundedExecutorServiceWrapper.Builder withThreadPoolName(@Nonnull String threadPoolName)
withExecutorService(Supplier)
.
threadPoolName
- The thread pool name
public BoundedExecutorServiceWrapper.Builder withExecutorService(@Nonnull Supplier<com.google.common.util.concurrent.ListeningExecutorService> executorServiceSupplier)
executorServiceSupplier
- Supplier of a suitable executor service to use
public BoundedExecutorServiceWrapper build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |