Package org.apache.sling.commons.threads
Interface ThreadPool
- All Superinterfaces:
Executor
The thread pool interface allows to start runnables by
getting threads from a managed pool.
-
Method Details
-
submit
Submits a callable for execution -
submit
Submits a runnable for execution -
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
-