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.async.api.Sink;
08: import com.tc.net.protocol.delivery.OnceAndOnlyOnceProtocolNetworkLayer;
09: import com.tc.net.protocol.delivery.OnceAndOnlyOnceProtocolNetworkLayerFactory;
10:
11: public class MockOnceAndOnlyOnceProtocolNetworkLayerFactory implements
12: OnceAndOnlyOnceProtocolNetworkLayerFactory {
13:
14: public OnceAndOnlyOnceProtocolNetworkLayer layer;
15:
16: public OnceAndOnlyOnceProtocolNetworkLayer createNewClientInstance(
17: Sink workSink) {
18: return layer;
19: }
20:
21: public OnceAndOnlyOnceProtocolNetworkLayer createNewServerInstance(
22: Sink workSink) {
23: return layer;
24: }
25: }
|