1 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 ; 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, 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 msgClass); 27 28 public InetAddress getBindAddress(); 29 30 public int getBindPort(); 31 32 } 33 | Popular Tags |