KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > transport > TransportHandshakeMessageFactory


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.transport;
5
6 import com.tc.net.core.TCConnection;
7
8 public interface TransportHandshakeMessageFactory {
9
10   public TransportHandshakeMessage createSyn(ConnectionID connectionId, TCConnection source);
11
12   public TransportHandshakeMessage createAck(ConnectionID connectionId, TCConnection source);
13
14   public TransportHandshakeMessage createSynAck(ConnectionID connectionId, TCConnection source,
15                                                 boolean isMaxConnectionsExceeded, int maxConnections);
16
17   public TransportHandshakeMessage createSynAck(ConnectionID connectionId, TransportHandshakeErrorContext errorContext,
18                                                 TCConnection source, boolean isMaxConnectionsExceeded,
19                                                 int maxConnections);
20 }
21
Popular Tags