Class ConcurrentHasherRequest

java.lang.Object
com.biglybt.core.util.ConcurrentHasherRequest

public class ConcurrentHasherRequest extends Object
  • Field Details

    • hash_version

      private final int hash_version
    • buffer

      private final ByteBuffer buffer
    • piece_size

      private final int piece_size
    • v2_file_size

      private final long v2_file_size
    • v2_hash_tree

      private List<List<byte[]>> v2_hash_tree
    • listener

    • size

      private final int size
    • result

      private byte[] result
    • cancelled

      private boolean cancelled
    • low_priority

      private final boolean low_priority
    • sem

      private final AESemaphore sem
  • Constructor Details

  • Method Details

    • getHashVersion

      public int getHashVersion()
    • getResult

      public byte[] getResult()
      synchronously get the result of the hash - null returned if it is cancelled
      Returns:
    • getHashTree

      public List<List<byte[]>> getHashTree()
    • cancel

      public void cancel()
      cancel the hash request. If it is cancelled before it is completed then a subsequent call to getResult will return null
    • getCancelled

      public boolean getCancelled()
    • getSize

      public int getSize()
    • isLowPriority

      public boolean isLowPriority()
    • run

      protected void run(SHA1Hasher hasher)
    • run

      protected void run(MessageDigest hasher)