Interface IPeerDistributor

  • All Known Implementing Classes:
    EqualDistributor, UncappedDistributor
    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 IPeerDistributor
    An interface which defines how peers get distributed over all the torrents within TorrentClient
    • Method Detail

      • hasReachedPeerLimit

        boolean hasReachedPeerLimit​(Torrent torrent)
        Parameters:
        torrent - The torrent to calculate the limit for.
        Returns:
        true when the torrent has reached the calculated peer count limit.