com.perforce.p4java.impl.mapbased.rpc.connection
Class RpcConnectionFlowControl

java.lang.Object
  extended by com.perforce.p4java.impl.mapbased.rpc.connection.RpcConnectionFlowControl

public class RpcConnectionFlowControl
extends Object

Provides Perforce flow control services for the Perforce server connection.


Field Summary
static int FLUSH_CMD_LENGTH
          Length in bytes of a flush command when marshaled.
static String TRACE_PREFIX
           
 
Constructor Summary
protected RpcConnectionFlowControl()
           
 
Method Summary
 RpcPacket respondToFlush1(Map<String,Object> resultsMap)
          Construct a flush2 response to the passed-in flush1 packet.
 RpcPacket respondToFlush1(RpcPacket flush1)
          Construct a flush2 response to the passed-in flush1 packet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRACE_PREFIX

public static final 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
Constructor Detail

RpcConnectionFlowControl

protected RpcConnectionFlowControl()
Method Detail

respondToFlush1

public RpcPacket respondToFlush1(RpcPacket flush1)
Construct a flush2 response to the passed-in flush1 packet.


respondToFlush1

public RpcPacket respondToFlush1(Map<String,Object> resultsMap)
Construct a flush2 response to the passed-in flush1 packet.



Copyright © 2015 Perforce Software. All Rights Reserved.