Class RpcConnectionFlowControl
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.rpc.connection.RpcConnectionFlowControl
-
public class RpcConnectionFlowControl extends java.lang.Object
Provides Perforce flow control services for the Perforce server connection.
-
-
Field Summary
Fields Modifier and Type Field Description static int
FLUSH_CMD_LENGTH
Length in bytes of a flush command when marshaled.static java.lang.String
TRACE_PREFIX
-
Constructor Summary
Constructors Modifier Constructor Description protected
RpcConnectionFlowControl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RpcPacket
respondToFlush1(RpcPacket flush1)
Construct a flush2 response to the passed-in flush1 packet.RpcPacket
respondToFlush1(java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Construct a flush2 response to the passed-in flush1 packet.
-
-
-
Field Detail
-
TRACE_PREFIX
public static final java.lang.String TRACE_PREFIX
- See Also:
- Constant Field Values
-
FLUSH_CMD_LENGTH
public static final int FLUSH_CMD_LENGTH
Length in bytes of a flush command when marshaled. This is actually a fiction -- it's more like 50 -- but the conservative sizing gives us a little leeway when things are tight (see the C++ API for a discussion on this -- we're just copying their behavior...).- See Also:
- Constant Field Values
-
-
Method Detail
-
respondToFlush1
public RpcPacket respondToFlush1(RpcPacket flush1)
Construct a flush2 response to the passed-in flush1 packet.- Parameters:
flush1
- flush1- Returns:
- RpcPacket
-
respondToFlush1
public RpcPacket respondToFlush1(java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Construct a flush2 response to the passed-in flush1 packet.- Parameters:
resultsMap
- resultsMap- Returns:
- RpcPacket
-
-