Interface IChokingStrategy

  • All Known Implementing Classes:
    PermissiveStrategy, PermissiveUploadStrategy
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IChokingStrategy
    Strategy to handle the interested and choke states of Peer
    • Method Detail

      • updateChoking

        void updateChoking​(Peer peer)
        Checks and possibly updates the choke states of the Peer.
        Parameters:
        peer - The peer for which the states should be managed.