Interface ParallelFileHash
- All Known Implementing Classes:
ParallelFileHashHandler
public interface ParallelFileHash
Interface for parallel file hash calculation.
This interface defines methods to calculate SHA256, SHA3, and Blake2B hashes
for a given file
in parallel. It provides asynchronous computation using Future objects and
supports shutting down
the thread pool after all tasks are completed.
-
Method Summary
Modifier and TypeMethodDescriptionCalculates the Blake2B hash for a given file and returns a Future representing the pending result.Calculates the SHA256 hash for a given file and returns a Future representing the pending result.calculateSha3HashFuture(File file) Calculates the SHA3 hash for a given file and returns a Future representing the pending result.GetAllHashesInParallel(File file) Calculates the hashes for a given file in parallel using SHA256, SHA3, and Blake2B algorithms.voidShuts down the thread pool and ensures all tasks are completed.
-
Method Details
-
calculateSha256HashFuture
-
calculateSha3HashFuture
-
calculateBlake2bHashFuture
-
GetAllHashesInParallel
Calculates the hashes for a given file in parallel using SHA256, SHA3, and Blake2B algorithms.- Parameters:
file- The file to be hashed.- Returns:
- An instance of HashForFilesOutput containing the calculated hashes.
-
shutdownThreadPool
void shutdownThreadPool()Shuts down the thread pool and ensures all tasks are completed.
-