Interface IDownloadPhase

  • All Known Implementing Classes:
    PhaseData, PhaseSeed

    public interface IDownloadPhase
    A phase in the download which will be regulated by this phase
    Author:
    Johnnei
    • 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.