java.lang.Object | |
↳ | com.atlassian.jira.util.BoundedExecutorServiceWrapper |
Wraps an ExecutorService to ensure the number of queued tasks is bounded to the specified concurrency. Submission of tasks will block until a thread is available.
Construct using a BoundedExecutorServiceWrapper.Builder.
Nested Classes | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
BoundedExecutorServiceWrapper.Builder |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Shutdown thread pool and block until it is drained using the configured timeout.
| |||||||||||
Shutdown thread pool and block until it is drained.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object | |||||||||||||||||||
From interface
com.atlassian.jira.util.ExecutorServiceWrapper
|
Shutdown thread pool and block until it is drained using the configured timeout.
Shutdown thread pool and block until it is drained.
timeout | the shutdown timeout |
---|---|
unit | the shutdown timeout unit |