| Package | Description |
|---|---|
| org.johnnei.javatorrent.disk | |
| org.johnnei.javatorrent.torrent | |
| org.johnnei.javatorrent.torrent.algos.pieceselector |
| Modifier and Type | Method and Description |
|---|---|
Piece |
DiskJobWriteBlock.getPiece()
Gets the piece for which this store task is being used.
|
Piece |
DiskJobReadBlock.getPiece()
The piece from which data was read.
|
Piece |
DiskJobCheckHash.getPiece()
Gets the piece for which the hash has been verified.
|
| Constructor and Description |
|---|
DiskJobCheckHash(Piece piece,
Consumer<DiskJobCheckHash> callback) |
DiskJobReadBlock(Piece piece,
int offset,
int length,
Consumer<DiskJobReadBlock> callback) |
DiskJobWriteBlock(Piece piece,
int blockIndex,
byte[] data,
Consumer<DiskJobWriteBlock> callback)
Creates a new job to store a block of a piece.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<Piece> |
AbstractFileSet.pieces
The pieces which contain all the information to complete the downloading of the files.
|
| Modifier and Type | Method and Description |
|---|---|
Piece |
AbstractFileSet.getPiece(int index)
Gets the piece with the given index
|
| Modifier and Type | Method and Description |
|---|---|
Stream<Piece> |
AbstractFileSet.getNeededPieces()
Creates a stream with only the pieces which are not done
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Piece> |
IPieceSelector.getPieceForPeer(Peer p)
Gets the next piece to download
|
Optional<Piece> |
FullPieceSelect.getPieceForPeer(Peer peer) |
Copyright © 2016. All rights reserved.