Class PieceFinishedAlert

All Implemented Interfaces:
Alert<piece_finished_alert>

public final class PieceFinishedAlert extends TorrentAlert<piece_finished_alert>
This alert is posted every time a piece completes downloading and passes the hash check. This alert derives from TorrentAlert which contains the TorrentHandle to the torrent the piece belongs to.
  • Method Details

    • pieceIndex

      public int pieceIndex()
      The index of the piece that finished.
      Returns:
      the piece index