| Modifier and Type | Method and Description |
|---|---|
TorrentClient |
TorrentClient.Builder.build() |
| Modifier and Type | Method and Description |
|---|---|
TorrentClient.Builder |
TorrentClient.Builder.registerTrackerProtocol(String protocol,
CheckedBiFunction<String,TorrentClient,ITracker,TrackerException> supplier) |
TorrentClient.Builder |
TorrentClient.Builder.setPeerConnector(Function<TorrentClient,IPeerConnector> peerConnector) |
TorrentClient.Builder |
TorrentClient.Builder.setPeerDistributor(Function<TorrentClient,IPeerDistributor> peerDistributor)
Sets the peer distributor which is being used by the
IPeerConnector implementation. |
| Modifier and Type | Method and Description |
|---|---|
TrackerFactory.Builder |
TrackerFactory.Builder.setTorrentClient(TorrentClient torrentClient) |
| Modifier and Type | Method and Description |
|---|---|
TrackerFactory.Builder |
TrackerFactory.Builder.registerProtocol(String protocol,
CheckedBiFunction<String,TorrentClient,ITracker,TrackerException> supplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
TorrentManager.start(TorrentClient torrentClient)
Starts the connnection listener which will accept new peers
|
| Modifier and Type | Method and Description |
|---|---|
void |
IModule.onBuild(TorrentClient torrentClient)
Event called as the last method in the build process of the
TorrentClient.Builder#build() call. |
| Modifier and Type | Field and Description |
|---|---|
protected TorrentClient |
AbstractPeerConnectionAcceptor.torrentClient |
| Constructor and Description |
|---|
AbstractPeerConnectionAcceptor(TorrentClient torrentClient) |
TcpPeerConnectionAcceptor(TorrentClient torrentClient) |
| Modifier and Type | Method and Description |
|---|---|
IDownloadPhase |
PhaseRegulator.createInitialPhase(TorrentClient torrentClient,
Torrent torrent) |
Optional<IDownloadPhase> |
PhaseRegulator.createNextPhase(IDownloadPhase phase,
TorrentClient torrentClient,
Torrent torrent) |
| Modifier and Type | Method and Description |
|---|---|
<T extends IDownloadPhase> |
PhaseRegulator.Builder.registerInitialPhase(Class<T> phase,
BiFunction<TorrentClient,Torrent,T> phaseSupplier,
Optional<Class<? extends IDownloadPhase>> nextPhase) |
<T extends IDownloadPhase> |
PhaseRegulator.Builder.registerPhase(Class<T> phase,
BiFunction<TorrentClient,Torrent,T> phaseSupplier,
Optional<Class<? extends IDownloadPhase>> nextPhase) |
| Constructor and Description |
|---|
PhaseData(TorrentClient torrentClient,
Torrent torrent) |
PhaseSeed(TorrentClient torrentClient,
Torrent torrent)
Creates a new seeding phase.
|
| Modifier and Type | Method and Description |
|---|---|
Torrent.Builder |
Torrent.Builder.setTorrentClient(TorrentClient torrentClient)
Sets the torrent client on which this torrent will be registered.
|
| Constructor and Description |
|---|
EqualDistributor(TorrentClient torrentClient,
int globalLimit)
Creates a distributor which attempts to equally distribute the peers over the torrents.
|
PeerConnector(TorrentClient torrentClient) |
PeerConnectorPool(TorrentClient torrentClient,
int maxConcurrentConnecting)
Creates a new pool of
PeerConnectors. |
UncappedDistributor(TorrentClient tc)
Creates an instance of
UncappedDistributor which allows for UncappedDistributor::new to be used in
TorrentClient.Builder.setPeerDistributor(Function) |
Copyright © 2016. All rights reserved.