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.
| |||||||||||
Shutdown thread pool and block until it is drained using the configured timeout.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Shutdown thread pool and block until it is drained.
timeout | the shutdown timeout |
---|---|
unit | the shutdown timeout unit |
Shutdown thread pool and block until it is drained using the configured timeout.