java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.client.ClientManager.DistributeLocal
- All Implemented Interfaces:
Job
- Enclosing class:
ClientManager
Job delivering a message to a local destination.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientConnectionRunnerThe runner the message came from, null from the network.private final DestinationThe destination the message came from.private final longThe message nonce for replay checks.private final MessageIdThe message id.private final PayloadThe message payload.private final ClientConnectionRunnerThe runner delivering the message.private final DestinationThe destination the message goes to.Constructor Summary
ConstructorsConstructorDescriptionDistributeLocal(RouterContext ctx, Destination toDest, ClientConnectionRunner to, ClientConnectionRunner from, Destination fromDest, Payload payload, MessageId id, long messageNonce) Distribute a message from one client connection directly to another.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
_toDest
The destination the message goes to._to
The runner delivering the message._from
The runner the message came from, null from the network._fromDest
The destination the message came from._payload
The message payload._msgId
The message id._messageNonce
private final long _messageNonceThe message nonce for replay checks.
Constructor Details
DistributeLocal
public DistributeLocal(RouterContext ctx, Destination toDest, ClientConnectionRunner to, ClientConnectionRunner from, Destination fromDest, Payload payload, MessageId id, long messageNonce) Distribute a message from one client connection directly to another.- Parameters:
ctx- the router contexttoDest- the destination being sent toto- the client connection the message goes tofrom- the client connection the message came fromfromDest- the destination the message came frompayload- the message payloadid- the router's ID for this messagemessageNonce- the client's ID for this message
Method Details
getName
runJob
public void runJob()Description copied from interface:JobActually perform the task. This call blocks until the Job is complete.