public interface PieceSelector
Modifier and Type | Method and Description |
---|---|
IntStream |
getNextPieces(BitSet relevantChunks,
PieceStatistics pieceStatistics)
Select pieces based on the chunks which are relevant.
|
default void |
initSelector(int numPieces)
Init any structures to iterate through numPieces pieces in some iteration order
|
default void initSelector(int numPieces)
numPieces
- the number of pieces totalIntStream getNextPieces(BitSet relevantChunks, PieceStatistics pieceStatistics)
relevantChunks
- the relevant chunks to chose (in the peer's completed list,pieceStatistics
- the piece statisticsCopyright © 2016–2021. All rights reserved.