java.lang.Object
net.i2p.router.networkdb.kademlia.SearchJob.Search
- Enclosing class:
SearchJob
Holds callbacks and expiration for a deferred search.
Field Summary
Constructor Summary
Method Summary
All MethodsModifier and TypeMethodDescriptionlongWhen the search is abandoned if nothing has answered.The job scheduled when the search fails.The job scheduled when the search finds the hash.
Field Details
_onFind
On find._onFail
On fail._expiration
private final long _expirationExpiration time.
Constructor Details
Search
Method Details
getOnFind
The job scheduled when the search finds the hash.- Returns:
- the job to run on success, null if there is none
getOnFail
The job scheduled when the search fails.- Returns:
- the job to run on failure, null if there is none
getExpiration
public long getExpiration()When the search is abandoned if nothing has answered.- Returns:
- the deadline, in ms