Class AnnounceEntry

java.lang.Object
com.frostwire.jlibtorrent.AnnounceEntry

public final class AnnounceEntry extends Object
This class holds information about one bittorrent tracker, as it relates to a specific torrent.
  • Constructor Details

    • AnnounceEntry

      public AnnounceEntry(announce_entry e)
      Parameters:
      e - the native object
    • AnnounceEntry

      public AnnounceEntry(String url)
      Constructs a tracker announce entry with u as the URL.
      Parameters:
      url - the tracker url
  • Method Details

    • swig

      public announce_entry swig()
      Returns:
      the native object
    • endpoints

      public List<AnnounceEndpoint> endpoints()
    • url

      public String url()
      Tracker URL as it appeared in the torrent file.
      Returns:
      the tracker url
    • url

      public void url(String value)
    • trackerId

      public String trackerId()
      The current &trackerid= argument passed to the tracker. this is optional and is normally empty (in which case no trackerid is sent).
      Returns:
      the trackerid url argument
    • trackerId

      public void trackerId(String value)
    • tier

      public int tier()
      The tier this tracker belongs to.
      Returns:
      the tier number
    • tier

      public void tier(short value)
    • failLimit

      public int failLimit()
      The max number of failures to announce to this tracker in a row, before this tracker is not used anymore. 0 means unlimited.
      Returns:
      the max number of failures allowed
    • failLimit

      public void failLimit(short value)
    • source

      public int source()
      A bitmask specifying which sources we got this tracker from.
      Returns:
      the source bitmask
    • isVerified

      public boolean isVerified()
      Set to true the first time we receive a valid response from this tracker.
      Returns:
      if the tracker has received a valid response