Class PieceFinishedAlert

java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<com.frostwire.jlibtorrent.swig.piece_finished_alert>
com.frostwire.jlibtorrent.alerts.TorrentAlert<com.frostwire.jlibtorrent.swig.piece_finished_alert>
com.frostwire.jlibtorrent.alerts.PieceFinishedAlert
All Implemented Interfaces:
Alert<com.frostwire.jlibtorrent.swig.piece_finished_alert>

public final class PieceFinishedAlert extends TorrentAlert<com.frostwire.jlibtorrent.swig.piece_finished_alert>
This alert is posted every time a piece completes downloading and passes the hash check. This alert derives from 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