Package org.apache.sling.commons.threads
Interface ThreadPool
-
- All Superinterfaces:
Executor
@ProviderType public interface ThreadPool extends Executor
The thread pool interface allows to start runnables by getting threads from a managed pool.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThreadPoolConfig
getConfiguration()
The thread pool configuration.String
getName()
The name of the thread pool.Future<?>
submit(Runnable runnable)
Submits a runnable for execution<T> Future<T>
submit(Callable<T> callable)
Submits a callable for execution
-
-
-
Method Detail
-
getName
String getName()
The name of the thread pool.- Returns:
- The thread pool name.
-
getConfiguration
ThreadPoolConfig getConfiguration()
The thread pool configuration.- Returns:
- The thread pool configuration
-
-