Class LkupResult

java.lang.Object
net.i2p.client.impl.LkupResult
All Implemented Interfaces:
LookupResult

public class LkupResult extends Object implements LookupResult
The return value of I2PSession.lookupDest2()
Since:
0.9.43
  • Constructor Details

    • LkupResult

      LkupResult(int code, Destination dest)
    • LkupResult

      LkupResult(int nonce)
      Deferred
      Since:
      0.9.67
    • LkupResult

      LkupResult(int code, Destination dest, int nonce)
      Async
      Since:
      0.9.67
  • Method Details

    • getResultCode

      public int getResultCode()
      Specified by:
      getResultCode in interface LookupResult
      Returns:
      zero for success, nonzero for failure
    • getDestination

      public Destination getDestination()
      Specified by:
      getDestination in interface LookupResult
      Returns:
      Destination on success, null on failure
    • getNonce

      public int getNonce()
      For async calls only. Nonce will be non-zero. Callback will be called later with the final result and the same nonce.
      Specified by:
      getNonce in interface LookupResult
      Since:
      0.9.67