public class SplitFileFetcherSegmentBlockChooser extends CooldownBlockChooser
maxRetries
Constructor and Description |
---|
SplitFileFetcherSegmentBlockChooser(int blocks,
java.util.Random random,
int maxRetries,
int cooldownTries,
long cooldownTime,
SplitFileFetcherSegmentStorage segment,
KeysFetchingLocally keysFetching,
int ignoreLastBlock) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkValid(int chosen)
Is the proposed block valid? Override to implement custom logic e.g.
|
chooseKey, clearCooldown, getCooldownTime, innerOnNonFatalFailure, onUnSuccess, overallCooldownTime
copyDownloadedBlocks, countFailedBlocks, countFetchable, getBlockNumber, getMaxBlockNumber, getRetries, hasSucceeded, hasSucceededAll, onCompletedAll, onNonFatalFailure, onSuccess, read, readRetries, replaceSuccesses, successCount, write, writeRetries
public SplitFileFetcherSegmentBlockChooser(int blocks, java.util.Random random, int maxRetries, int cooldownTries, long cooldownTime, SplitFileFetcherSegmentStorage segment, KeysFetchingLocally keysFetching, int ignoreLastBlock)
protected boolean checkValid(int chosen)
SimpleBlockChooser
checkValid
in class CooldownBlockChooser