class FloodOnlyLookupSelector extends Object implements MessageSelector
Matches incoming DatabaseStoreMessage and DatabaseSearchReplyMessage responses to specific flood-only search jobs. Handles response validation, lookup decrement tracking, and coordinates followup searches through SingleLookupJob when appropriate.
Largely superseded by IterativeLookupSelector but retained for compatibility with existing flood-only search implementations. Provides specialized logic for flood-based search response handling with profile management and search lifecycle coordination.
| Constructor and Description |
|---|
FloodOnlyLookupSelector(RouterContext ctx,
FloodOnlySearchJob search)FloodOnlyLookupSelector. |
| Modifier and Type | Method and Description |
|---|---|
boolean | continueMatching()Continue matching while lookups remain and the match is not yet found. |
long | getExpiration()Absolute time when the search expires, or -1 once a match is found. |
boolean | isMatch(I2NPMessage message)Whether the message is a store for the searched key. |
String | toString()Returns a string representation of this selector. |
public FloodOnlyLookupSelector(RouterContext ctx, FloodOnlySearchJob search)
public boolean continueMatching()
continueMatching in interface MessageSelectorpublic long getExpiration()
getExpiration in interface MessageSelectorpublic boolean isMatch(I2NPMessage message)
isMatch in interface MessageSelector