KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > xsocket > stream > IMutlithreadedServerListener


1 // $Id: IMutlithreadedServerListener.java 1507 2007-07-13 07:26:53Z grro $
2
/*
3  * Copyright (c) xsocket.org, 2006 - 2007. All rights reserved.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Please refer to the LGPL license at: http://www.gnu.org/copyleft/lesser.txt
20  * The latest copy of this software may be found on http://www.xsocket.org/
21  */

22 package org.xsocket.stream;
23
24
25 import org.xsocket.IDispatcher;
26 import org.xsocket.IWorkerPool;
27
28
29
30
31 /**
32  * listener interface, which defines specific callback methods for a {@link IMultithreadedServer}
33  *
34  * @author grro@xsocket.org
35  */

36 public interface IMutlithreadedServerListener extends ILifeCycle, org.xsocket.ILifeCycle {
37
38     /**
39      * call back method for worker pool replaced event
40      *
41      * @deprecated
42      *
43      * @param oldWorkerPool the old worker pool or <code>null</code>
44      * @param newWorkerPool the new worker pool or <code>null</code>
45      */

46     public void onWorkerPoolUpdated(IWorkerPool oldWorkerPool, IWorkerPool newWorkerPool);
47     
48     
49     /**
50      * call back method for a {@link IDispatcher} add event
51      *
52      * @deprecated
53      * @param dispatcher the added dispatcher
54      */

55     public void onDispatcherAdded(IDispatcher dispatcher);
56
57     /**
58      * call back method for a {@link IDispatcher} removed event
59      *
60      * @deprecated
61      * @param dispatcher the removed dispatcher
62      */

63     public void onDispatcherRemoved(IDispatcher dispatcher);
64 }
65
Popular Tags