1 5 package com.tc.net.protocol.tcm; 6 7 import com.tc.async.api.Sink; 8 import com.tc.config.schema.dynamic.ConfigItem; 9 import com.tc.net.TCSocketAddress; 10 import com.tc.net.core.TCConnectionManager; 11 import com.tc.net.protocol.transport.ConnectionIDFactory; 12 import com.tc.object.session.SessionProvider; 13 14 17 public interface CommunicationsManager { 18 public TCConnectionManager getConnectionManager(); 19 20 public void shutdown(); 21 22 public boolean isInShutdown(); 23 24 public NetworkListener[] getAllListeners(); 25 26 38 public ClientMessageChannel createClientChannel(SessionProvider sessionProvider, int maxReconnectTries, 39 String hostname, int port, int timeout, 40 ConfigItem connectionInfoSource); 41 42 public NetworkListener createListener(SessionProvider sessionProvider, TCSocketAddress addr, 43 boolean transportDisconnectRemovesChannel, 44 ConnectionIDFactory connectionIdFactory); 45 46 public NetworkListener createListener(SessionProvider sessionProvider, TCSocketAddress addr, 47 boolean transportDisconnectRemovesChannel, 48 ConnectionIDFactory connectionIdFactory, boolean reuseAddress); 49 50 public NetworkListener createListener(SessionProvider sessionProvider, TCSocketAddress address, 51 boolean transportDisconnectRemovesChannel, 52 ConnectionIDFactory connectionIDFactory, Sink httpSink); 53 } | Popular Tags |