01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.net.protocol.tcm;
06:
07: import com.tc.async.api.Sink;
08: import com.tc.util.TCTimeoutException;
09:
10: import java.io.IOException;
11: import java.net.InetAddress;
12: import java.util.Set;
13:
14: public interface NetworkListener {
15:
16: public void start(Set initialConnectionIDs) throws IOException;
17:
18: public void stop(long timeout) throws TCTimeoutException;
19:
20: public void routeMessageType(TCMessageType messageType,
21: TCMessageSink sink);
22:
23: public void routeMessageType(TCMessageType messageType,
24: Sink destSink, Sink hydrateSink);
25:
26: public ChannelManager getChannelManager();
27:
28: public void addClassMapping(TCMessageType type, Class msgClass);
29:
30: public InetAddress getBindAddress();
31:
32: public int getBindPort();
33:
34: }
|