Interface MaxBytesRecvBufferAllocator

    • Method Detail

      • maxBytesPerRead

        int maxBytesPerRead()
        Returns the maximum number of bytes to read per read loop. a channelRead() event. If this value is greater than 1, an event loop might attempt to read multiple times to procure bytes.
      • maxBytesPerRead

        MaxBytesRecvBufferAllocator maxBytesPerRead​(int maxBytesPerRead)
        Sets the maximum number of bytes to read per read loop. If this value is greater than 1, an event loop might attempt to read multiple times to procure bytes.
      • maxBytesPerIndividualRead

        int maxBytesPerIndividualRead()
        Returns the maximum number of bytes to read per individual read operation. a channelRead() event. If this value is greater than 1, an event loop might attempt to read multiple times to procure bytes.
      • maxBytesPerIndividualRead

        MaxBytesRecvBufferAllocator maxBytesPerIndividualRead​(int maxBytesPerIndividualRead)
        Sets the maximum number of bytes to read per individual read operation. If this value is greater than 1, an event loop might attempt to read multiple times to procure bytes.
      • maxBytesPerReadPair

        Map.Entry<Integer,​Integer> maxBytesPerReadPair()
        Atomic way to get the maximum number of bytes to read for a read loop and per individual read operation. If this value is greater than 1, an event loop might attempt to read multiple times to procure bytes.
        Returns:
        The Key is from maxBytesPerRead(). The Value is from maxBytesPerIndividualRead()
      • maxBytesPerReadPair

        MaxBytesRecvBufferAllocator maxBytesPerReadPair​(int maxBytesPerRead,
                                                        int maxBytesPerIndividualRead)
        Sets the maximum number of bytes to read for a read loop and per individual read operation. If this value is greater than 1, an event loop might attempt to read multiple times to procure bytes.
        Parameters:
        maxBytesPerRead - see maxBytesPerRead(int)
        maxBytesPerIndividualRead - see maxBytesPerIndividualRead(int)