Class IterativeLookupSelector
java.lang.Object
net.i2p.router.networkdb.kademlia.IterativeLookupSelector
- All Implemented Interfaces:
MessageSelector
Slightly modified version of FloodOnlyLookupSelector.
Always follows the DSRM entries.
- Since:
- 0.8.9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the selector should still keep searching for further matches.longReturns the # of milliseconds since the epoch after which this selector should stop searching for matches.booleanisMatch(I2NPMessage message) This only returns true for DSMs, not for DSRMs.toString()
-
Constructor Details
-
IterativeLookupSelector
-
-
Method Details
-
continueMatching
public boolean continueMatching()Description copied from interface:MessageSelectorReturns true if the selector should still keep searching for further matches. This is called only if isMatch() returns true. If this returns true, isMatch() will not be called again.- Specified by:
continueMatchingin interfaceMessageSelector
-
getExpiration
public long getExpiration()Description copied from interface:MessageSelectorReturns the # of milliseconds since the epoch after which this selector should stop searching for matches. At some time after expiration, if continueMatching() has not returned false, the job specified by OutNetMessage.getOnFailedReplyJob() will be run for every OutNetMessage associated with this selector (by OutboundMessageRegistry).- Specified by:
getExpirationin interfaceMessageSelector
-
isMatch
This only returns true for DSMs, not for DSRMs.- Specified by:
isMatchin interfaceMessageSelector
-
toString
-