Class 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  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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.
        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