| Constructor and Description |
|---|
DiskJobCheckHash(Piece piece,
Consumer<DiskJobCheckHash> callback) |
| Modifier and Type | Method and Description |
|---|---|
Piece |
getPiece()
Gets the piece for which the hash has been verified.
|
int |
getPriority()
The priority of this job
|
boolean |
isMatchingHash()
This method returns the result of the
process() call. |
void |
process()
Processes the disk job
|
public DiskJobCheckHash(Piece piece, Consumer<DiskJobCheckHash> callback)
public void process()
throws IOException
IDiskJobprocess in interface IDiskJobIOExceptionpublic int getPriority()
IDiskJobgetPriority in interface IDiskJobpublic boolean isMatchingHash()
process() call.true when the hash verification passed, otherwise false.process()public Piece getPiece()
Copyright © 2016. All rights reserved.