Package net.i2p.client.impl
Class LkupResult
java.lang.Object
net.i2p.client.impl.LkupResult
- All Implemented Interfaces:
LookupResult
The return value of I2PSession.lookupDest2()
- Since:
- 0.9.43
-
Field Summary
Fields inherited from interface net.i2p.client.LookupResult
RESULT_DECRYPTION_FAILURE, RESULT_DEFERRED, RESULT_FAILURE, RESULT_KEY_REQUIRED, RESULT_SECRET_AND_KEY_REQUIRED, RESULT_SECRET_REQUIRED, RESULT_SUCCESS
-
Constructor Summary
ConstructorsConstructorDescriptionLkupResult
(int nonce) DeferredLkupResult
(int code, Destination dest) LkupResult
(int code, Destination dest, int nonce) Async -
Method Summary
-
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 interfaceLookupResult
- Returns:
- zero for success, nonzero for failure
-
getDestination
- Specified by:
getDestination
in interfaceLookupResult
- 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 interfaceLookupResult
- Since:
- 0.9.67
-