Class BlockUploadedAlert

All Implemented Interfaces:
Alert<block_uploaded_alert>

public final class BlockUploadedAlert extends PeerAlert<block_uploaded_alert>
This alert is posted when a block intended to be sent to a peer is placed in the send buffer. Note that if the connection is closed before the send buffer is sent, the alert may be posted without the bytes having been sent to the peer. It belongs to the ``progress_notification`` category.
  • Method Details

    • blockIndex

      public int blockIndex()
      Returns:
      the block index
    • pieceIndex

      public int pieceIndex()
      Returns:
      the piece index