public class PhaseData extends Object implements IDownloadPhase
| Constructor and Description |
|---|
PhaseData(TorrentClient torrentClient,
Torrent torrent) |
| 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 PhaseData(TorrentClient torrentClient, Torrent torrent)
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.