@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 Callablejava.util.concurrent.Future<?> submit(java.lang.Runnable runnable)
runnable - The Runnable to submitFuture representing pending completion of the Runnablejava.lang.String getName()
ThreadPoolConfig getConfiguration()
Copyright © 2018 The Apache Software Foundation. All rights reserved.