public static class PhaseRegulator.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PhaseRegulator |
build() |
<T extends IDownloadPhase> |
registerInitialPhase(Class<T> phase,
BiFunction<TorrentClient,Torrent,T> phaseSupplier,
Optional<Class<? extends IDownloadPhase>> nextPhase) |
<T extends IDownloadPhase> |
registerPhase(Class<T> phase,
BiFunction<TorrentClient,Torrent,T> phaseSupplier,
Optional<Class<? extends IDownloadPhase>> nextPhase) |
public <T extends IDownloadPhase> PhaseRegulator.Builder registerInitialPhase(Class<T> phase, BiFunction<TorrentClient,Torrent,T> phaseSupplier, Optional<Class<? extends IDownloadPhase>> nextPhase)
public <T extends IDownloadPhase> PhaseRegulator.Builder registerPhase(Class<T> phase, BiFunction<TorrentClient,Torrent,T> phaseSupplier, Optional<Class<? extends IDownloadPhase>> nextPhase)
public PhaseRegulator build()
Copyright © 2016. All rights reserved.