java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.dummy.VMCommSystem.ReceiveJob
- All Implemented Interfaces:
Job
- Enclosing class:
VMCommSystem
Delivers a message received from another router.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate RouterContextThe receiving router's context.private HashThe sender's hash.private byte[]The message bytes.Constructor Summary
ConstructorsConstructorDescriptionReceiveJob(Hash from, byte[] msg, RouterContext us) Holds a message to deliver to a job.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
_from
The sender's hash._msg
private byte[] _msgThe message bytes._ctx
The receiving router's context.
Constructor Details
ReceiveJob
Holds a message to deliver to a job.- Parameters:
from- the hash of the sending routermsg- the message bytesus- the local router context
Method Details
runJob
public void runJob()Execute the job.getName