java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.FloodOnlyLookupMatchJob
- Direct Known Subclasses:
DirectLookupMatchJob
Handles match processing for flood-only search operations.
This job processes responses to flood-only searches, determining success or failure based on received database store messages. It coordinates with the parent search job to signal completion and handles LeaseSet reply marking appropriately.
Extends the base match job functionality to work specifically with flood-based search strategies where responses are processed asynchronously.
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LogThe log.protected final FloodSearchJobThe parent search job.protected booleanWhether the match was successful.Constructor Summary
ConstructorsConstructorDescriptionMatch job for a flood-only search.Method Summary
All MethodsModifier and TypeMethodDescriptiongetName()Descriptive name of the task.voidrunJob()Actually perform the task.voidsetMessage(I2NPMessage message) Called byInNetMessagePoolwhen an I2NPMessage matching a MessageSelector registered with the OutboundMessageRegistry is received.Methods inherited from class JobImpl
dropped, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringModifier and TypeMethodDescriptionvoiddropped()Default implementation does nothing.final RouterContextThe router context that this job belongs to.longgetJobId()The unique job ID for this job.longThe timestamp when this job was last made ready for execution.The timing object for this job.voidmadeReady(long now) For JobQueue only, not for external use.protected voidrequeue(long delayMs) Requeue this job to run after the specified delay.toString()
Field Details
_log
The log._search
The parent search job._success
protected volatile boolean _successWhether the match was successful.
Constructor Details
FloodOnlyLookupMatchJob
Match job for a flood-only search.- Parameters:
ctx- the router contextjob- the parent flood search job
Method Details
runJob
getName
setMessage
Description copied from interface:ReplyJobCalled byInNetMessagePoolwhen an I2NPMessage matching a MessageSelector registered with the OutboundMessageRegistry is received.- Specified by:
setMessagein interfaceReplyJob- Parameters:
message- the received I2NP message