Class DiskJobCheckHash

  • All Implemented Interfaces:
    IDiskJob

    public class DiskJobCheckHash
    extends Object
    implements IDiskJob
    A job to check the hash of a piece for a given torrent
    Author:
    Johnnei
    • Method Detail

      • getPriority

        public int getPriority()
        Description copied from interface: IDiskJob
        The priority of this job
        Specified by:
        getPriority in interface IDiskJob
        Returns:
        The priority
      • isMatchingHash

        public boolean isMatchingHash()
        This method returns the result of the process() call.
        Returns:
        true when the hash verification passed, otherwise false.
        See Also:
        process()
      • getPiece

        public Piece getPiece()
        Gets the piece for which the hash has been verified.
        Returns:
        The piece which is affected by this job.