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, overallCooldownTimecopyDownloadedBlocks, countFailedBlocks, countFetchable, getBlockNumber, getMaxBlockNumber, getRetries, hasSucceeded, hasSucceededAll, onCompletedAll, onNonFatalFailure, onSuccess, read, readRetries, replaceSuccesses, successCount, write, writeRetriespublic SplitFileFetcherSegmentBlockChooser(int blocks,
java.util.Random random,
int maxRetries,
int cooldownTries,
long cooldownTime,
SplitFileFetcherSegmentStorage segment,
KeysFetchingLocally keysFetching,
int ignoreLastBlock)
protected boolean checkValid(int chosen)
SimpleBlockChoosercheckValid in class CooldownBlockChooser