| Constructor and Description |
|---|
DiskJobReadBlock(Piece piece,
int offset,
int length,
Consumer<DiskJobReadBlock> callback) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBlockData()
The read data from the piece
|
int |
getOffset()
Gets the offset at which the data started reading.
|
Piece |
getPiece()
The piece from which data was read.
|
int |
getPriority()
The priority of this job
|
void |
process()
Processes the disk job
|
public DiskJobReadBlock(Piece piece, int offset, int length, Consumer<DiskJobReadBlock> callback)
public void process()
throws IOException
process in interface IDiskJobIOExceptionpublic int getPriority()
getPriority in interface IDiskJobpublic byte[] getBlockData()
getPiece()public Piece getPiece()
public int getOffset()
Copyright © 2016. All rights reserved.