public class PhaseSeed extends Object implements IDownloadPhase
| Constructor and Description |
|---|
PhaseSeed(TorrentClient torrentClient,
Torrent torrent)
Creates a new seeding phase.
|
| Modifier and Type | Method and Description |
|---|---|
IChokingStrategy |
getChokingStrategy()
Gets the choking strategy which is optimal for this phase.
|
boolean |
isDone()
Checks if the phase has been finished
|
void |
onPhaseEnter()
Prepare the phase
|
void |
onPhaseExit()
Clean up the phase
|
void |
process()
Processing the phase of the torrent
|
public PhaseSeed(TorrentClient torrentClient, Torrent torrent)
torrentClient - The client on which this phase operates.torrent - The torrent for which this phase applies.PhaseRegulator.Builder.registerPhase(Class, BiFunction, Optional)public boolean isDone()
IDownloadPhaseisDone in interface IDownloadPhasepublic void process()
IDownloadPhaseprocess in interface IDownloadPhasepublic void onPhaseEnter()
IDownloadPhaseonPhaseEnter in interface IDownloadPhasepublic void onPhaseExit()
IDownloadPhaseonPhaseExit in interface IDownloadPhasepublic IChokingStrategy getChokingStrategy()
IDownloadPhasegetChokingStrategy in interface IDownloadPhaseCopyright © 2016. All rights reserved.