01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.net.protocol.transport;
05:
06: import com.tc.net.core.TCConnection;
07:
08: public interface TransportHandshakeMessageFactory {
09:
10: public TransportHandshakeMessage createSyn(
11: ConnectionID connectionId, TCConnection source);
12:
13: public TransportHandshakeMessage createAck(
14: ConnectionID connectionId, TCConnection source);
15:
16: public TransportHandshakeMessage createSynAck(
17: ConnectionID connectionId, TCConnection source,
18: boolean isMaxConnectionsExceeded, int maxConnections);
19:
20: public TransportHandshakeMessage createSynAck(
21: ConnectionID connectionId,
22: TransportHandshakeErrorContext errorContext,
23: TCConnection source, boolean isMaxConnectionsExceeded,
24: int maxConnections);
25: }
|