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.NetworkLayer;
08: import com.tc.net.protocol.transport.MessageTransport;
09: import com.tc.net.protocol.transport.MessageTransportListener;
10:
11: /**
12: * This is not a very intersting interface. It's here to allow testing of the once and only once network stack harness
13: * with mock objects. The stack harness needs to treat the OOOP network layer as both a network layer and a transport
14: * listener, hence this interface which combines the two.
15: */
16: public interface OnceAndOnlyOnceProtocolNetworkLayer extends
17: NetworkLayer, MessageTransport, MessageTransportListener {
18: void start();
19:
20: void pause();
21:
22: void resume();
23:
24: void startRestoringConnection();
25:
26: void connectionRestoreFailed();
27:
28: boolean isClosed();
29: }
|