1/*2 * Copyright 2000-2001,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.services.threadpool;
1819import org.apache.turbine.services.Service;
2021/***22 * <p>base interface for a simple ThreadPool</p>23 *24 * @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>25 * @author <a href="mailto:raphael@apache.org">Raphaël Luta</a>26 * @version $Id: ThreadPoolService.java,v 1.5 2004/02/23 03:51:31 jford Exp $27 */28publicinterfaceThreadPoolServiceextends Service {
2930publicstaticfinal String SERVICE_NAME = "ThreadPool";
3132/***33 * Put the Runnable object on the process queue of the threadpool.34 * This process will be executed at defaut priority as soon as a 35 * thread is available36 *37 * @param runnable the Runnable object to process38 */39publicvoid process( Runnable runnable );
4041/***42 * Put the Runnable object on the process queue of the threadpool.43 * This process will be executed at the specified priority as soon as a 44 * thread is available45 *46 * @param runnable the Runnable object to process47 * @param priority the priority the process should run with48 */49publicvoid process( Runnable runnable, int priority );
5051 }
52