Class RpcConnectionFlowControl

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

public class RpcConnectionFlowControl extends Object
Provides Perforce flow control services for the Perforce server connection.
  • Field Details

    • TRACE_PREFIX

      public static final String TRACE_PREFIX
      See Also:
    • 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:
  • Constructor Details

    • RpcConnectionFlowControl

      protected RpcConnectionFlowControl()
  • Method Details

    • 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(Map<String,Object> resultsMap)
      Construct a flush2 response to the passed-in flush1 packet.
      Parameters:
      resultsMap - resultsMap
      Returns:
      RpcPacket