java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tunnel.TunnelParticipant.SendJob
- All Implemented Interfaces:
Job
- Enclosing class:
TunnelParticipant
Job to send a message after router lookup completes.
Field Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionSendJob(RouterContext ctx, TunnelDataMessage msg) The tunnel data message to send after the lookup.Method Summary
All MethodsMethods 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
_msg
The message being sent.
Constructor Details
SendJob
The tunnel data message to send after the lookup.- Parameters:
ctx- the router context for the jobmsg- the tunnel data message to send after the lookup
Method Details
getName
The name of this job.- Returns:
- the name this job is listed under in the job queue
runJob
public void runJob()Send the queued message once the next hop is found.