Interface Unchoker

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void calculateUnchokes​(int max_to_unchoke, java.util.ArrayList<PEPeer> all_peers, boolean force_refresh, boolean check_priority_connections, boolean do_high_latency_peers)
      Perform peer choke, unchoke and optimistic calculations
      java.util.ArrayList<PEPeer> getChokes()
      Get the list of peers calculated to be choked.
      java.util.ArrayList<PEPeer> getImmediateUnchokes​(int max_to_unchoke, java.util.ArrayList<PEPeer> all_peers)
      Get any unchokes that should be performed immediately.
      java.util.ArrayList<PEPeer> getUnchokes()
      Get the list of peers calculated to be unchoked.
      boolean isSeedingUnchoker()  
    • Method Detail

      • isSeedingUnchoker

        boolean isSeedingUnchoker()
      • getImmediateUnchokes

        java.util.ArrayList<PEPeer> getImmediateUnchokes​(int max_to_unchoke,
                                                         java.util.ArrayList<PEPeer> all_peers)
        Get any unchokes that should be performed immediately.
        Parameters:
        max_to_unchoke - maximum number of peers allowed to be unchoked
        all_peers - list of peers to choose from
        Returns:
        peers to unchoke
      • calculateUnchokes

        void calculateUnchokes​(int max_to_unchoke,
                               java.util.ArrayList<PEPeer> all_peers,
                               boolean force_refresh,
                               boolean check_priority_connections,
                               boolean do_high_latency_peers)
        Perform peer choke, unchoke and optimistic calculations
        Parameters:
        max_to_unchoke - maximum number of peers allowed to be unchoked
        all_peers - list of peers to choose from
        force_refresh - force a refresh of optimistic unchokes
      • getChokes

        java.util.ArrayList<PEPeer> getChokes()
        Get the list of peers calculated to be choked.
        Returns:
        peers to choke
      • getUnchokes

        java.util.ArrayList<PEPeer> getUnchokes()
        Get the list of peers calculated to be unchoked.
        Returns:
        peers to unchoke