Package | Description |
---|---|
bt | |
bt.data | |
bt.data.file | |
bt.dht | |
bt.event | |
bt.metainfo | |
bt.peer | |
bt.processor | |
bt.processor.torrent | |
bt.torrent | |
bt.torrent.callbacks | |
bt.torrent.messaging | |
bt.tracker |
Modifier and Type | Method and Description |
---|---|
B |
TorrentClientBuilder.afterDownloaded(Consumer<Torrent> runnable)
Provide a callback to invoke when downloading has completed
|
B |
TorrentClientBuilder.afterTorrentFetched(Consumer<Torrent> torrentConsumer)
Provide a callback to invoke when torrent's metadata has been fetched.
|
B |
TorrentClientBuilder.torrent(Supplier<Torrent> torrentSupplier)
Set custom torrent file supplier
|
Modifier and Type | Method and Description |
---|---|
DataDescriptor |
DataDescriptorFactory.createDescriptor(Torrent torrent,
Storage storage,
FileDownloadCompleteCallback fileCompletionCallback) |
DataDescriptor |
IDataDescriptorFactory.createDescriptor(Torrent torrent,
Storage storage,
FileDownloadCompleteCallback fileCompletionCallback)
Create a data descriptor for a given torrent
with the storage provided as the data back-end.
|
DataReader |
DataReaderFactory.createReader(Torrent torrent,
DataDescriptor dataDescriptor) |
StorageUnit |
Storage.getUnit(Torrent torrent,
TorrentFile torrentFile)
Get a storage unit for a particular torrent file.
|
Modifier and Type | Method and Description |
---|---|
StorageUnit |
FileSystemStorage.getUnit(Torrent torrent,
TorrentFile torrentFile) |
Modifier and Type | Method and Description |
---|---|
Stream<Peer> |
MldhtService.getPeers(Torrent torrent) |
Stream<Peer> |
DHTService.getPeers(Torrent torrent)
Deprecated.
since 1.3 in favor of
DHTService.getPeers(TorrentId) |
Modifier and Type | Method and Description |
---|---|
Torrent |
MetadataAvailableEvent.getTorrent() |
Modifier and Type | Method and Description |
---|---|
void |
EventSink.fireMetadataAvailable(TorrentId torrentId,
Torrent torrent)
Generate event, that torrent's metadata has been fetched.
|
void |
EventBus.fireMetadataAvailable(TorrentId torrentId,
Torrent torrent) |
Constructor and Description |
---|
MetadataAvailableEvent(long id,
long timestamp,
TorrentId torrentId,
Torrent torrent) |
Modifier and Type | Method and Description |
---|---|
Torrent |
MetadataService.fromByteArray(byte[] bs) |
Torrent |
IMetadataService.fromByteArray(byte[] bs)
Builds a torrent object from its binary representation.
|
Torrent |
MetadataService.fromInputStream(InputStream in) |
Torrent |
IMetadataService.fromInputStream(InputStream in)
Builds a torrent object from its binary representation.
|
Torrent |
MetadataService.fromUrl(URL url) |
Torrent |
IMetadataService.fromUrl(URL url)
Builds a torrent object from its binary representation located at
url . |
Modifier and Type | Method and Description |
---|---|
default PeerSource |
PeerSourceFactory.getPeerSource(Torrent torrent)
Deprecated.
since 1.3 in favor of
PeerSourceFactory.getPeerSource(TorrentId) |
Modifier and Type | Method and Description |
---|---|
Optional<Torrent> |
ProcessingContext.getTorrent() |
Modifier and Type | Method and Description |
---|---|
Optional<Torrent> |
TorrentContext.getTorrent() |
Supplier<Torrent> |
TorrentContext.getTorrentSupplier() |
Modifier and Type | Method and Description |
---|---|
void |
TorrentContext.setTorrent(Torrent torrent) |
Constructor and Description |
---|
TorrentContext(PieceSelector pieceSelector,
FilePrioritySkipSelector fileSelector,
FileDownloadCompleteCallback fileCompletionCallback,
Storage storage,
Supplier<Torrent> torrentSupplier) |
TorrentContext(PieceSelector pieceSelector,
FilePrioritySkipSelector fileSelector,
Storage storage,
Supplier<Torrent> torrentSupplier) |
TorrentContext(PieceSelector pieceSelector,
Storage storage,
Supplier<Torrent> torrentSupplier) |
Modifier and Type | Method and Description |
---|---|
Optional<Torrent> |
AdhocTorrentRegistry.getTorrent(TorrentId torrentId) |
Optional<Torrent> |
TorrentRegistry.getTorrent(TorrentId torrentId)
Get a torrent with a given torrent ID, if exists.
|
Collection<Torrent> |
AdhocTorrentRegistry.getTorrents() |
Collection<Torrent> |
TorrentRegistry.getTorrents()
Get all torrents, that have been registered in the runtime.
|
Modifier and Type | Method and Description |
---|---|
Optional<TorrentDescriptor> |
AdhocTorrentRegistry.getDescriptor(Torrent torrent) |
Optional<TorrentDescriptor> |
TorrentRegistry.getDescriptor(Torrent torrent)
Deprecated.
since 1.3 in favor of
TorrentRegistry.getDescriptor(TorrentId) |
TorrentDescriptor |
AdhocTorrentRegistry.getOrCreateDescriptor(Torrent torrent,
Storage storage) |
TorrentDescriptor |
TorrentRegistry.getOrCreateDescriptor(Torrent torrent,
Storage storage)
Deprecated.
since 1.3 in favor of more clearly named
TorrentRegistry.register(Torrent, Storage, FileDownloadCompleteCallback) |
TorrentDescriptor |
AdhocTorrentRegistry.register(Torrent torrent,
Storage storage,
FileDownloadCompleteCallback completedFileCallbacks) |
TorrentDescriptor |
TorrentRegistry.register(Torrent torrent,
Storage storage,
FileDownloadCompleteCallback fileCompletionCallback)
Get an existing torrent descriptor for a given torrent
or create a new one if it does not exist.
|
Constructor and Description |
---|
TrackerAnnouncer(ITrackerService trackerService,
Torrent torrent,
AnnounceKey announceKey,
TorrentSessionState sessionState) |
Modifier and Type | Method and Description |
---|---|
void |
FileDownloadCompleteCallback.fileDownloadCompleted(Torrent torrent,
TorrentFile tf,
Storage s) |
Modifier and Type | Method and Description |
---|---|
Torrent |
MetadataConsumer.waitForTorrent() |
Constructor and Description |
---|
MetadataProducer(Supplier<Torrent> torrentSupplier,
Config config) |
Modifier and Type | Method and Description |
---|---|
default TrackerRequestBuilder |
Tracker.request(Torrent torrent)
Deprecated.
since 1.3 in favor of
Tracker.request(TorrentId) |
Copyright © 2016–2021. All rights reserved.