Package org.johnnei.javatorrent.phases
Interface IDownloadPhase
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IChokingStrategygetChokingStrategy()Gets the choking strategy which is optimal for this phase.booleanisDone()Checks if the phase has been finishedvoidonPhaseEnter()Prepare the phasevoidonPhaseExit()Clean up the phasevoidprocess()Processing the phase of the torrent
-
-
-
Method Detail
-
isDone
boolean isDone()
Checks if the phase has been finished- Returns:
- true if the phase can be ended
-
process
void process()
Processing the phase of the torrent
-
onPhaseEnter
void onPhaseEnter()
Prepare the phase
-
onPhaseExit
void onPhaseExit()
Clean up the phase
-
getChokingStrategy
IChokingStrategy getChokingStrategy()
Gets the choking strategy which is optimal for this phase.- Returns:
- The optimal choking strategy.
-
-