Class DhtImmutableItemAlert

java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<dht_immutable_item_alert>
com.frostwire.jlibtorrent.alerts.DhtImmutableItemAlert
All Implemented Interfaces:
Alert<dht_immutable_item_alert>

public final class DhtImmutableItemAlert extends AbstractAlert<dht_immutable_item_alert>
This alert is posted as a response to a call to SessionHandle.dhtGetItem(Sha1Hash), looking up immutable items in the DHT.
  • Method Details

    • target

      public Sha1Hash target()
      The target hash of the immutable item. This must match the sha-1 hash of the bencoded form of the item.
      Returns:
      the target of the original query
    • item

      public Entry item()
      the data for this item
      Returns:
      the entry returned by the DHT