public interface TorrentSessionState
Modifier and Type | Field and Description |
---|---|
static long |
UNKNOWN
The bytes returned when the data transfer is unknown
|
Modifier and Type | Method and Description |
---|---|
Set<ConnectionKey> |
getConnectedPeers() |
long |
getDownloaded() |
long |
getLeft()
Get the number of bytes left to verify, or
UNKNOWN if unknown (torrent not yet fetched) |
int |
getPiecesComplete() |
int |
getPiecesIncomplete() |
int |
getPiecesNotSkipped() |
int |
getPiecesRemaining() |
int |
getPiecesSkipped() |
int |
getPiecesTotal() |
long |
getUploaded() |
boolean |
startedAsSeed()
Check if the torrent was finished upon initial hashing
|
boolean |
updateFileDownloadPriority(ProcessingContext c,
FilePrioritySelector prioritySelector)
Update the priority of downloading specified files
|
static final long UNKNOWN
int getPiecesTotal()
int getPiecesComplete()
int getPiecesIncomplete()
int getPiecesRemaining()
int getPiecesSkipped()
int getPiecesNotSkipped()
long getDownloaded()
long getUploaded()
long getLeft()
UNKNOWN
if unknown (torrent not yet fetched)boolean startedAsSeed()
Set<ConnectionKey> getConnectedPeers()
boolean updateFileDownloadPriority(ProcessingContext c, FilePrioritySelector prioritySelector)
c
- The processing context of the torrentprioritySelector
- the files to update the priority forCopyright © 2016–2021. All rights reserved.