Uses of Class
org.johnnei.javatorrent.TorrentClient
-
-
Uses of TorrentClient in org.johnnei.javatorrent
Methods in org.johnnei.javatorrent that return TorrentClient Modifier and Type Method Description TorrentClientTorrentClient.Builder. build()Method parameters in org.johnnei.javatorrent with type arguments of type TorrentClient Modifier and Type Method Description TorrentClient.BuilderTorrentClient.Builder. registerTrackerProtocol(String protocol, CheckedBiFunction<String,TorrentClient,ITracker,TrackerException> supplier)TorrentClient.BuilderTorrentClient.Builder. setPeerConnector(Function<TorrentClient,IPeerConnector> peerConnector)TorrentClient.BuilderTorrentClient.Builder. setPeerDistributor(Function<TorrentClient,IPeerDistributor> peerDistributor)Sets the peer distributor which is being used by theIPeerConnectorimplementation. -
Uses of TorrentClient in org.johnnei.javatorrent.bittorrent.tracker
Methods in org.johnnei.javatorrent.bittorrent.tracker with parameters of type TorrentClient Modifier and Type Method Description TrackerFactory.BuilderTrackerFactory.Builder. setTorrentClient(TorrentClient torrentClient)Method parameters in org.johnnei.javatorrent.bittorrent.tracker with type arguments of type TorrentClient Modifier and Type Method Description TrackerFactory.BuilderTrackerFactory.Builder. registerProtocol(String protocol, CheckedBiFunction<String,TorrentClient,ITracker,TrackerException> supplier) -
Uses of TorrentClient in org.johnnei.javatorrent.module
Methods in org.johnnei.javatorrent.module with parameters of type TorrentClient Modifier and Type Method Description voidIModule. onBuild(TorrentClient torrentClient)Event called as the last method in the build process of theTorrentClient.Builder.build()call. -
Uses of TorrentClient in org.johnnei.javatorrent.phases
Methods in org.johnnei.javatorrent.phases with parameters of type TorrentClient Modifier and Type Method Description IDownloadPhasePhaseRegulator. createInitialPhase(TorrentClient torrentClient, Torrent torrent)Creates an instance of the initialIDownloadPhasefor the givenTorrent.Optional<IDownloadPhase>PhaseRegulator. createNextPhase(IDownloadPhase phase, TorrentClient torrentClient, Torrent torrent)Creates an instance of the nextIDownloadPhasefor the givenTorrent.Method parameters in org.johnnei.javatorrent.phases with type arguments of type TorrentClient Modifier and Type Method Description <T extends IDownloadPhase>
PhaseRegulator.BuilderPhaseRegulator.Builder. registerInitialPhase(Class<T> phase, BiFunction<TorrentClient,Torrent,T> phaseSupplier)Registers the initialIDownloadPhase<T extends IDownloadPhase>
PhaseRegulator.BuilderPhaseRegulator.Builder. registerInitialPhase(Class<T> phase, BiFunction<TorrentClient,Torrent,T> phaseSupplier, Class<? extends IDownloadPhase> nextPhase)Registers the initialIDownloadPhase<T extends IDownloadPhase>
PhaseRegulator.BuilderPhaseRegulator.Builder. registerPhase(Class<T> phase, BiFunction<TorrentClient,Torrent,T> phaseSupplier)Registers a new transition to the givenIDownloadPhase<T extends IDownloadPhase>
PhaseRegulator.BuilderPhaseRegulator.Builder. registerPhase(Class<T> phase, BiFunction<TorrentClient,Torrent,T> phaseSupplier, Class<? extends IDownloadPhase> nextPhase)Registers a new transition to the givenIDownloadPhaseConstructors in org.johnnei.javatorrent.phases with parameters of type TorrentClient Constructor Description PhaseData(TorrentClient torrentClient, Torrent torrent)Creates a new Data Phase for the given torrent.PhaseSeed(TorrentClient torrentClient, Torrent torrent)Creates a new seeding phase. -
Uses of TorrentClient in org.johnnei.javatorrent.torrent
Methods in org.johnnei.javatorrent.torrent with parameters of type TorrentClient Modifier and Type Method Description Torrent.BuilderTorrent.Builder. setTorrentClient(TorrentClient torrentClient)Sets the torrent client on which this torrent will be registered. -
Uses of TorrentClient in org.johnnei.javatorrent.tracker
Constructors in org.johnnei.javatorrent.tracker with parameters of type TorrentClient Constructor Description EqualDistributor(TorrentClient torrentClient, int globalLimit)Creates a distributor which attempts to equally distribute the peers over the torrents.NioPeerConnector(TorrentClient torrentClient, int maxConcurrentConnecting)Creates a new unstarted peer connector.UncappedDistributor(TorrentClient tc)Creates an instance ofUncappedDistributorwhich allows forUncappedDistributor::newto be used inTorrentClient.Builder.setPeerDistributor(Function) -
Uses of TorrentClient in org.johnnei.javatorrent.tracker.http
Methods in org.johnnei.javatorrent.tracker.http with parameters of type TorrentClient Modifier and Type Method Description voidHttpTrackerModule. onBuild(TorrentClient torrentClient)
-