org.apache.sling.commons.threads
Interface ThreadPool


public interface ThreadPool

The thread pool interface allows to start runnables by getting threads from a managed pool.


Method Summary
 void execute(Runnable runnable)
          Execute a runnable
 ThreadPoolConfig getConfiguration()
          The thread pool configuration.
 String getName()
          The name of the thread pool.
 

Method Detail

execute

void execute(Runnable runnable)
Execute a runnable

Parameters:
runnable - The Runnable to execute

getName

String getName()
The name of the thread pool.


getConfiguration

ThreadPoolConfig getConfiguration()
The thread pool configuration.



Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.