1 package org.exolab.jms.net.multiplexer;
2
3
4
5 /***
6 * Listener for {@link Multiplexer} events.
7 *
8 * @author <a href="mailto:tma@netspace.net.au">Tim Anderson</a>
9 * @version $Revision: 1.3 $ $Date: 2006/12/16 12:37:17 $
10 */
11 public interface MultiplexerListener {
12
13 /***
14 * Invoked for an invocation request.
15 *
16 * @param channel the channel the invocation is on
17 */
18 void request(Channel channel);
19
20 /***
21 * Invoked when the connection is closed by the peer.
22 */
23 void closed();
24
25 /***
26 * Invoked when an error occurs on the multiplexer.
27 *
28 * @param error the error
29 */
30 void error(Throwable error);
31
32 /***
33 * Notifies of a successful ping.
34 *
35 * @param token the token sent in the ping
36 */
37 void pinged(int token);
38
39 }