class StoreMessageSelector extends Object implements MessageSelector
Filters incoming DeliveryStatusMessage responses to identify acknowledgments for specific store operations. Tracks message IDs, peer information, and expiration times to correlate delivery confirmations with pending store jobs.
Provides logging support for store operation monitoring and implements simple match-once logic to prevent duplicate processing of delivery confirmations.
| Constructor and Description |
|---|
StoreMessageSelector(RouterContext ctx,
long storeJobId,
RouterInfo peer,
long waitingForId,
long expiration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
continueMatching()
Returns true if the selector should still keep searching for further matches.
|
long |
getExpiration()
Returns the # of milliseconds since the epoch after which this selector should
stop searching for matches.
|
boolean |
isMatch(I2NPMessage message)
Returns true if the received message matches the selector.
|
String |
toString() |
public StoreMessageSelector(RouterContext ctx, long storeJobId, RouterInfo peer, long waitingForId, long expiration)
storeJobId - just for loggingpeer - just for loggingpublic boolean continueMatching()
MessageSelectorcontinueMatching in interface MessageSelectorpublic long getExpiration()
MessageSelectorgetExpiration in interface MessageSelectorpublic boolean isMatch(I2NPMessage message)
MessageSelectorisMatch in interface MessageSelector