java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tunnel.InboundGatewayReceiver.ReceiveJob
- All Implemented Interfaces:
Job
- Enclosing class:
InboundGatewayReceiver
Job receiving one message for the next hop.
Field Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionReceiveJob(RouterContext ctx, byte[] data) Holds the encrypted gateway message so it can be handed to the receiver once the job queue reaches it.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
_encrypted
private final byte[] _encryptedThe encrypted message data.
Constructor Details
ReceiveJob
Holds the encrypted gateway message so it can be handed to the receiver once the job queue reaches it.- Parameters:
ctx- the router contextdata- the encrypted gateway message
Method Details
getName
The name of this job.- Returns:
- the name this job is listed under in the job queue and the logs, "Lookup IBGW First Hop"
runJob
public void runJob()Continue the router info lookup for the next hop.