KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > tcm > NetworkListener


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
3  * notice. All rights reserved.
4  */

5 package com.tc.net.protocol.tcm;
6
7 import com.tc.async.api.Sink;
8 import com.tc.util.TCTimeoutException;
9
10 import java.io.IOException JavaDoc;
11 import java.net.InetAddress JavaDoc;
12 import java.util.Set JavaDoc;
13
14 public interface NetworkListener {
15
16   public void start(Set JavaDoc initialConnectionIDs) throws IOException JavaDoc;
17
18   public void stop(long timeout) throws TCTimeoutException;
19
20   public void routeMessageType(TCMessageType messageType, TCMessageSink sink);
21
22   public void routeMessageType(TCMessageType messageType, Sink destSink, Sink hydrateSink);
23
24   public ChannelManager getChannelManager();
25
26   public void addClassMapping(TCMessageType type, Class JavaDoc msgClass);
27
28   public InetAddress JavaDoc getBindAddress();
29
30   public int getBindPort();
31
32 }
33
Popular Tags