KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > delivery > DeliveryProtocol


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.delivery;
5
6 import com.tc.net.protocol.TCNetworkMessage;
7
8 /**
9  * Responsible for the delivery logic of messages
10  */

11 interface DeliveryProtocol {
12
13   public void send(TCNetworkMessage message);
14
15   public void receive(OOOProtocolMessage protocolMessage);
16
17   public void start();
18
19   /**
20    * call me when a connection is lost
21    */

22   public void pause();
23
24   /**
25    * call me when a connection is made
26    */

27   public void resume();
28
29 }
Popular Tags