@ProviderType public interface ThreadPool extends java.util.concurrent.Executor
Modifier and Type | Method and Description |
---|---|
ThreadPoolConfig |
getConfiguration()
The thread pool configuration.
|
java.lang.String |
getName()
The name of the thread pool.
|
<T> java.util.concurrent.Future<T> |
submit(java.util.concurrent.Callable<T> callable)
Submits a callable for execution
|
java.util.concurrent.Future<?> |
submit(java.lang.Runnable runnable)
Submits a runnable for execution
|
<T> java.util.concurrent.Future<T> submit(java.util.concurrent.Callable<T> callable)
T
- The generic type for the callable.callable
- The Callable
to submitFuture
representing pending completion of the Callable
java.util.concurrent.Future<?> submit(java.lang.Runnable runnable)
runnable
- The Runnable
to submitFuture
representing pending completion of the Runnable
java.lang.String getName()
ThreadPoolConfig getConfiguration()
Copyright © 2010 - 2020 Adobe. All Rights Reserved