1 /* 2 * Copyright (C) The Apache Software Foundation. All rights reserved. 3 * 4 * This software is published under the terms of the Apache Software License 5 * version 1.1, a copy of which has been included with this distribution in 6 * the LICENSE.txt file. 7 */ 8 package org.apache.avalon.excalibur.command; 9 10 /** 11 * A ThreadManager handles the thread policies for EventPipelines. It works 12 * hand in hand with the CommandManager, and can be expanded to work with a 13 * SEDA like architecture. 14 * 15 * @author <a HREF="mailto:bloritsch@apache.org">Berin Loritsch</a> 16 */ 17 public interface ThreadManager 18 { 19 /** 20 * Register an EventPipeline with the ThreadManager. 21 */ 22 void register( EventPipeline pipeline ); 23 24 /** 25 * Deregister an EventPipeline with the ThreadManager 26 */ 27 void deregister( EventPipeline pipeline ); 28 29 /** 30 * Deregisters all EventPipelines from this ThreadManager 31 */ 32 void deregisterAll(); 33 }