java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tunnel.OutboundReceiver.SendJob
- All Implemented Interfaces:
Job
- Enclosing class:
OutboundReceiver
Job sending one message to the next hop.
Field Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionSendJob(RouterContext ctx, TunnelDataMessage msg) Builds the send job for one tunnel data message.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 to send.
Constructor Details
SendJob
Builds the send job for one tunnel data message.- Parameters:
ctx- the router contextmsg- the message to send once the first hop is found
Method Details
getName
The name of this job.- Returns:
- the job name
Send to OBGW after Lookup, which the job queue uses to key this job's statistics
runJob
public void runJob()Send the queued message once the first hop is found.