public final class AnnounceEntry
extends java.lang.Object
| Constructor and Description |
|---|
AnnounceEntry(announce_entry e) |
AnnounceEntry(java.lang.String url)
Constructs a tracker announce entry with
u as the URL. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AnnounceEndpoint> |
endpoints() |
int |
failLimit()
The max number of failures to announce to this tracker in
a row, before this tracker is not used anymore.
|
void |
failLimit(short value) |
boolean |
isVerified()
Set to true the first time we receive a valid response
from this tracker.
|
int |
source()
A bitmask specifying which sources we got this tracker from.
|
announce_entry |
swig() |
int |
tier()
The tier this tracker belongs to.
|
void |
tier(short value) |
java.lang.String |
trackerId()
The current
&trackerid= argument passed to the tracker. |
void |
trackerId(java.lang.String value) |
java.lang.String |
url()
Tracker URL as it appeared in the torrent file.
|
void |
url(java.lang.String value) |
public AnnounceEntry(announce_entry e)
e - the native objectpublic AnnounceEntry(java.lang.String url)
u as the URL.url - the tracker urlpublic announce_entry swig()
public java.util.List<AnnounceEndpoint> endpoints()
public java.lang.String url()
public void url(java.lang.String value)
public java.lang.String trackerId()
&trackerid= argument passed to the tracker.
this is optional and is normally empty (in which case no
trackerid is sent).public void trackerId(java.lang.String value)
public int tier()
public void tier(short value)
public int failLimit()
public void failLimit(short value)
public int source()
public boolean isVerified()