java.lang.Object
net.i2p.client.impl.I2PSessionImpl.LookupWaiter
Enclosing class:
I2PSessionImpl

private static class I2PSessionImpl.LookupWaiterextends Object
Simple object to wait for lookup replies.
  • Field Details

    • hash

      public final Hash hash
      The request (Hash mode).
    • name

      public final String name
      The request (String mode).
    • nonce

      public final long nonce
      The request (nonce mode).
    • destination

      public Destination destination
      The reply; synchronized on this.
    • code

      public int code
      The return code; sync on this.
    • callback

      public final LookupCallback callback
      The callback.
  • Constructor Details

    • LookupWaiter

      public LookupWaiter(Hash h)
      Waits for one destination lookup.
      Parameters:
      h - the destination hash to look up
    • LookupWaiter

      public LookupWaiter(Hash h, long nonce)
      Waits for a destination lookup by hash.
      Parameters:
      h - the hash to look up
      nonce - the nonce to match the reply with
    • LookupWaiter

      public LookupWaiter(String name, long nonce)
      Waits for a destination lookup by name.
      Parameters:
      name - the local name to look up
      nonce - the nonce to match the reply with
    • LookupWaiter

      public LookupWaiter(Destination d)
      A completed lookup, for a destination we already have.
      Parameters:
      d - the destination, taken as the answer
    • LookupWaiter

      public LookupWaiter(Hash h, long nonce, LookupCallback callback)
      Waits for a destination lookup by hash, with a callback.
      Parameters:
      h - the hash to look up
      nonce - the nonce to match the reply with
      callback - the callback to run with the result
    • LookupWaiter

      public LookupWaiter(String name, long nonce, LookupCallback callback)
      Waits for a destination lookup by name, with a callback.
      Parameters:
      name - the local name to look up
      nonce - the nonce to match the reply with
      callback - the callback to run with the result