Class Request


  • class Request
    extends Object
    Holds all information needed for a partial piece request. This class should be used only by PeerState, PeerConnectionIn, and PeerConnectionOut.
    • Field Detail

      • off

        final int off
      • len

        final int len
      • sendTime

        long sendTime
    • Constructor Detail

      • Request

        Request​(PartialPiece piece,
                int off,
                int len)
        Creates a new Request.
        Parameters:
        piece - Piece number requested.
        off - the offset in the array.
        len - the number of bytes requested.
      • Request

        Request​(PartialPiece piece,
                int off)
        Dummy Request for PeerState.returnPartialPieces(). len will be zero.
        Parameters:
        piece - Piece number requested.
        off - the offset in the array.
        Since:
        0.9.36