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.delivery;
06:
07: import com.tc.net.protocol.TCNetworkMessage;
08: import com.tc.net.protocol.transport.ConnectionID;
09:
10: public interface OOOProtocolMessageDelivery {
11:
12: public OOOProtocolMessage createHandshakeMessage(long ack);
13:
14: public OOOProtocolMessage createHandshakeReplyOkMessage(long ack);
15:
16: public OOOProtocolMessage createHandshakeReplyFailMessage(long ack);
17:
18: public OOOProtocolMessage createAckMessage(long sequence);
19:
20: public boolean sendMessage(OOOProtocolMessage msg);
21:
22: public void receiveMessage(OOOProtocolMessage msg);
23:
24: public OOOProtocolMessage createProtocolMessage(long sent,
25: TCNetworkMessage msg);
26:
27: public ConnectionID getConnectionId();
28:
29: }
|