KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > transport > MessageTransport


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

4 package com.tc.net.protocol.transport;
5
6 import com.tc.net.TCSocketAddress;
7 import com.tc.net.core.TCConnection;
8 import com.tc.net.protocol.NetworkLayer;
9 import com.tc.net.protocol.TCNetworkMessage;
10
11 import java.util.List JavaDoc;
12
13 /**
14  * Interface for message transport layer-- the connection-side endcap to the message communications stack.
15  */

16 public interface MessageTransport extends NetworkLayer {
17   public ConnectionID getConnectionId();
18
19   public void addTransportListener(MessageTransportListener listener);
20
21   public void addTransportListeners(List JavaDoc transportListeners);
22
23   public void removeTransportListeners();
24
25   public void attachNewConnection(TCConnection connection);
26
27   public void receiveTransportMessage(WireProtocolMessage message);
28
29   public void sendToConnection(TCNetworkMessage message);
30   
31   public TCSocketAddress getRemoteAddress();
32   
33   public TCSocketAddress getLocalAddress();
34
35 }
Popular Tags