Enum Class TorrentStatus.State

java.lang.Object
java.lang.Enum<TorrentStatus.State>
com.frostwire.jlibtorrent.TorrentStatus.State
All Implemented Interfaces:
Serializable, Comparable<TorrentStatus.State>, Constable
Enclosing class:
TorrentStatus

public static enum TorrentStatus.State extends Enum<TorrentStatus.State>
the different overall states a torrent can be in.
  • Enum Constant Details

    • CHECKING_FILES

      public static final TorrentStatus.State CHECKING_FILES
      The torrent has not started its download yet, and is currently checking existing files.
    • DOWNLOADING_METADATA

      public static final TorrentStatus.State DOWNLOADING_METADATA
      The torrent is trying to download metadata from peers. This assumes the metadata_transfer extension is in use.
    • DOWNLOADING

      public static final TorrentStatus.State DOWNLOADING
      The torrent is being downloaded. This is the state most torrents will be in most of the time. The progress meter will tell how much of the files that has been downloaded.
    • FINISHED

      public static final TorrentStatus.State FINISHED
      In this state the torrent has finished downloading but still doesn't have the entire torrent. i.e. some pieces are filtered and won't get downloaded.
    • SEEDING

      public static final TorrentStatus.State SEEDING
      In this state the torrent has finished downloading and is a pure seeder.
    • CHECKING_RESUME_DATA

      public static final TorrentStatus.State CHECKING_RESUME_DATA
      The torrent is currently checking the fastresume data and comparing it to the files on disk. This is typically completed in a fraction of a second, but if you add a large number of torrents at once, they will queue up.
    • UNKNOWN

      public static final TorrentStatus.State UNKNOWN
  • Method Details

    • values

      public static TorrentStatus.State[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TorrentStatus.State valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • swig

      public int swig()
      Returns:
      the native value
    • fromSwig

      public static TorrentStatus.State fromSwig(int swigValue)
      Parameters:
      swigValue -
      Returns: