public interface ThreadPool
Modifier and Type | Method and Description |
---|---|
void |
execute(Runnable runnable)
Execute a runnable
|
ThreadPoolConfig |
getConfiguration()
The thread pool configuration.
|
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(Runnable runnable)
Submits a runnable for execution
|
void execute(Runnable runnable)
runnable
- The Runnable
to execute<T> java.util.concurrent.Future<T> submit(java.util.concurrent.Callable<T> callable)
java.util.concurrent.Future<?> submit(Runnable runnable)
String getName()
ThreadPoolConfig getConfiguration()
Copyright © 2014 The Apache Software Foundation. All rights reserved.