java.lang.Object
net.i2p.client.impl.I2PSessionImpl.LookupWaiter
- Enclosing class:
I2PSessionImpl
Simple object to wait for lookup replies.
Field Summary
FieldsModifier and TypeFieldDescriptionfinal LookupCallbackThe callback.intThe return code; sync on this.The reply; synchronized on this.final HashThe request (Hash mode).final StringThe request (String mode).final longThe request (nonce mode).Constructor Summary
ConstructorsConstructorDescriptionLookupWaiter(String name, long nonce) Waits for a destination lookup by name.LookupWaiter(String name, long nonce, LookupCallback callback) Waits for a destination lookup by name, with a callback.A completed lookup, for a destination we already have.LookupWaiter(Hash h) Waits for one destination lookup.LookupWaiter(Hash h, long nonce) Waits for a destination lookup by hash.LookupWaiter(Hash h, long nonce, LookupCallback callback) Waits for a destination lookup by hash, with a callback.Method Summary
Field Details
hash
The request (Hash mode).name
The request (String mode).nonce
public final long nonceThe request (nonce mode).destination
The reply; synchronized on this.code
public int codeThe return code; sync on this.callback
The callback.
Constructor Details
LookupWaiter
Waits for one destination lookup.- Parameters:
h- the destination hash to look up
LookupWaiter
Waits for a destination lookup by hash.- Parameters:
h- the hash to look upnonce- the nonce to match the reply with
LookupWaiter
Waits for a destination lookup by name.- Parameters:
name- the local name to look upnonce- the nonce to match the reply with
LookupWaiter
A completed lookup, for a destination we already have.- Parameters:
d- the destination, taken as the answer
LookupWaiter
Waits for a destination lookup by hash, with a callback.- Parameters:
h- the hash to look upnonce- the nonce to match the reply withcallback- the callback to run with the result
LookupWaiter
Waits for a destination lookup by name, with a callback.- Parameters:
name- the local name to look upnonce- the nonce to match the reply withcallback- the callback to run with the result