Package org.johnnei.javatorrent.tracker
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 withinTorrentClient
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasReachedPeerLimit(Torrent torrent)
-
-
-
Method Detail
-
hasReachedPeerLimit
boolean hasReachedPeerLimit(Torrent torrent)
- Parameters:
torrent- The torrent to calculate the limit for.- Returns:
truewhen the torrent has reached the calculated peer count limit.
-
-