public abstract class TrackerRequestBuilder extends Object
Modifier | Constructor and Description |
---|---|
protected |
TrackerRequestBuilder(TorrentId torrentId)
Create a tracker request builder for a given torrent ID
|
Modifier and Type | Method and Description |
---|---|
abstract TrackerResponse |
complete()
Announce to tracker, that the client has completed downloading the torrent.
|
Integer |
getNumWant()
Get the number of peers to request from the tracker, or null if the default value should be used
|
TorrentId |
getTorrentId() |
TrackerRequestBuilder |
numWant(Integer numWant)
Set the number of peers to request in this call to the tracker.
|
abstract TrackerResponse |
query()
Query tracker for active peers.
|
abstract TrackerResponse |
start()
Announce to tracker, that the client is starting a torrent session.
|
abstract TrackerResponse |
stop()
Announce to tracker, that the client is stopping a torrent session.
|
protected TrackerRequestBuilder(TorrentId torrentId)
public abstract TrackerResponse start()
public abstract TrackerResponse stop()
public abstract TrackerResponse complete()
public abstract TrackerResponse query()
public TrackerRequestBuilder numWant(Integer numWant)
numWant
- the number of peers to request from the trackerpublic TorrentId getTorrentId()
public Integer getNumWant()
Copyright © 2016–2021. All rights reserved.