org.apache.jetspeed.services.threadpool
Interface ThreadPoolService

All Superinterfaces:
org.apache.turbine.services.Initable, org.apache.turbine.services.Service
All Known Implementing Classes:
JetspeedThreadPoolService

public interface ThreadPoolService
extends org.apache.turbine.services.Service

base interface for a simple ThreadPool

Version:
$Id: ThreadPoolService.java,v 1.6 2005/03/21 18:21:44 sgala Exp $
Author:
Kevin A. Burton, Raphaël Luta

Field Summary
static java.lang.String SERVICE_NAME
           
 
Method Summary
 void process(java.lang.Runnable runnable)
          Put the Runnable object on the process queue of the threadpool.
 void process(java.lang.Runnable runnable, int priority)
          Put the Runnable object on the process queue of the threadpool.
 
Methods inherited from interface org.apache.turbine.services.Service
getConfiguration, getName, getProperties, setName, setServiceBroker
 
Methods inherited from interface org.apache.turbine.services.Initable
getInit, init, init, setInitableBroker, shutdown
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
See Also:
Constant Field Values
Method Detail

process

public void process(java.lang.Runnable runnable)
Put the Runnable object on the process queue of the threadpool. This process will be executed at defaut priority as soon as a thread is available

Parameters:
runnable - the Runnable object to process

process

public void process(java.lang.Runnable runnable,
                    int priority)
Put the Runnable object on the process queue of the threadpool. This process will be executed at the specified priority as soon as a thread is available

Parameters:
runnable - the Runnable object to process
priority - the priority the process should run with


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.