| Package | Description |
|---|---|
| org.johnnei.javatorrent | |
| org.johnnei.javatorrent.module |
| Modifier and Type | Method and Description |
|---|---|
TorrentClient.Builder |
TorrentClient.Builder.acceptIncomingConnections(boolean acceptIncomingConnections)
Enables (or disables) the starting of the peer connection accepts upon building of the torrent client.
|
TorrentClient.Builder |
TorrentClient.Builder.enableExtensionBit(int bit)
Enables a bit in the extension bytes.
|
TorrentClient.Builder |
TorrentClient.Builder.registerMessage(int id,
Supplier<IMessage> messageSupplier) |
TorrentClient.Builder |
TorrentClient.Builder.registerModule(IModule module) |
TorrentClient.Builder |
TorrentClient.Builder.registerTrackerProtocol(String protocol,
CheckedBiFunction<String,TorrentClient,ITracker,TrackerException> supplier) |
TorrentClient.Builder |
TorrentClient.Builder.setConnectionDegradation(ConnectionDegradation connectionDegradation) |
TorrentClient.Builder |
TorrentClient.Builder.setDownloadPort(int downloadPort)
Sets the download port at which we are listening
|
TorrentClient.Builder |
TorrentClient.Builder.setExecutorService(ScheduledExecutorService executorService) |
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. |
TorrentClient.Builder |
TorrentClient.Builder.setPhaseRegulator(PhaseRegulator phaseRegulator) |
| Modifier and Type | Method and Description |
|---|---|
void |
IModule.configureTorrentClient(TorrentClient.Builder builder)
Registers all the mandatory components to the
TorrentClient.Builder. |
Copyright © 2016. All rights reserved.