org.apache.sling.commons.threads
Interface ThreadPool

All Known Subinterfaces:
ThreadPool

public interface ThreadPool

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

Version:
$Id: ThreadPool.java 653306 2008-05-05 06:31:05Z cziegeler $

Method Summary
 void execute(java.lang.Runnable runnable)
          Execute a runnable
 ThreadPoolConfig getConfiguration()
           
 java.lang.String getName()
          The name of the thread pool.
 void shutdown()
          Shut down the thread pool.
 

Method Detail

execute

void execute(java.lang.Runnable runnable)
Execute a runnable

Parameters:
runnable - The Runnable to execute

getName

java.lang.String getName()
The name of the thread pool.


shutdown

void shutdown()
Shut down the thread pool.


getConfiguration

ThreadPoolConfig getConfiguration()


Copyright © 2007-2009. All Rights Reserved.