org.apache.geronimo.system.threads
Interface ThreadPool


public interface ThreadPool

Management interface for thread pools


Method Summary
 void execute(String consumerName, Runnable runnable)
          Executes work on behalf of a named client.
 int getPoolSize()
          Gets the maximum number of threads allowed for this thread pool
 

Method Detail

getPoolSize

int getPoolSize()
Gets the maximum number of threads allowed for this thread pool


execute

void execute(String consumerName,
             Runnable runnable)
             throws InterruptedException
Executes work on behalf of a named client. This helps the thread pool track who's using its threads.

Parameters:
consumerName - A name identifying the caller, to be used in the management statistics for this pool, etc.
runnable - The work to be done by a thread in the pool
Throws:
InterruptedException


Copyright © 2006 Apache Software Foundation. All Rights Reserved.