org.klomp.snark

## Class UDPTrackerClient.TrackerResponse

- java.lang.Object
- - org.klomp.snark.UDPTrackerClient.TrackerResponse

- Enclosing class:
    UDPTrackerClient

      public static class UDPTrackerClient.TrackerResponse
      extends Object

  Represents a response from a UDP tracker.
  This class encapsulates the tracker's response including peer lists, interval information, and any error messages.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TrackerResponse(int interval, int seeds, int leeches, Set<Hash> peers)` success
    `TrackerResponse(String errorMsg)` failure

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getFailureReason()`
    `int` | `getInterval()` in seconds
    `int` | `getLeechCount()`
    `int` | `getPeerCount()`
    `Set<Hash>` | `getPeers()`
    `int` | `getSeedCount()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TrackerResponse

          public TrackerResponse(int interval,
                                 int seeds,
                                 int leeches,
                                 Set<Hash> peers)

      success

    - #### TrackerResponse

          public TrackerResponse(String errorMsg)

      failure

  - ### Method Detail

    - #### getFailureReason

          public String getFailureReason()

    - #### getInterval

          public int getInterval()

      in seconds

    - #### getLeechCount

          public int getLeechCount()

    - #### getPeerCount

          public int getPeerCount()

    - #### getPeers

          public Set<Hash> getPeers()

    - #### getSeedCount

          public int getSeedCount()