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.transport;
06:
07: import com.tc.net.core.TCConnection;
08: import com.tc.net.protocol.IllegalReconnectException;
09: import com.tc.net.protocol.StackNotFoundException;
10:
11: /**
12: * Provider/locator for a network stack.
13: */
14: public interface NetworkStackProvider {
15:
16: /**
17: * Takes a new connection and a connectionId. Returns the MessageTransport associated with that id.
18: */
19: public MessageTransport attachNewConnection(
20: ConnectionID connectionId, TCConnection connection)
21: throws StackNotFoundException, IllegalReconnectException;
22:
23: }
|