public class UncappedDistributor extends Object implements IPeerDistributor
IPeerDistributor which does not cap the amount of peers.| Constructor and Description |
|---|
UncappedDistributor()
Creates an instance of
UncappedDistributor |
UncappedDistributor(TorrentClient tc)
Creates an instance of
UncappedDistributor which allows for UncappedDistributor::new to be used in
TorrentClient.Builder.setPeerDistributor(Function) |
public UncappedDistributor()
UncappedDistributorpublic UncappedDistributor(TorrentClient tc)
UncappedDistributor which allows for UncappedDistributor::new to be used in
TorrentClient.Builder.setPeerDistributor(Function)tc - The torrent client instance.public boolean hasReachedPeerLimit(Torrent torrent)
hasReachedPeerLimit in interface IPeerDistributortorrent - The torrent to calculate the limit for.true when the torrent has reached the calculated peer count limit.Copyright © 2016. All rights reserved.