java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.message.OutboundClientMessageOneShotJob.SendSuccessJob
net.i2p.router.message.OutboundClientMessageOneShotJob.ECIESReplyCallback
- All Implemented Interfaces:
ReplyCallback, Job, ReplyJob
- Enclosing class:
OutboundClientMessageOneShotJob
private class OutboundClientMessageOneShotJob.ECIESReplyCallbackextends OutboundClientMessageOneShotJob.SendSuccessJob implements ReplyCallback
For ECIES only.
Field Summary
Constructor Summary
ConstructorsConstructorDescriptionHandles an ECIES reply with no ratchet keys.Method Summary
All MethodsModifier and TypeMethodDescriptionlongWhen does this callback expire?voidonReply()A reply was received.Methods inherited from class OutboundClientMessageOneShotJob.SendSuccessJob
getName, runJob, setMessageModifier and TypeMethodDescriptiongetName()Descriptive name of the task.voidrunJob()May be run after SendTimeoutJob, will re-add the tags.voidsetMessage(I2NPMessage msg) Called byInNetMessagePoolwhen an I2NPMessage matching a MessageSelector registered with the OutboundMessageRegistry is received.Methods 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()
Constructor Details
ECIESReplyCallback
Handles an ECIES reply with no ratchet keys.- Parameters:
ls- the lease set to receive the reply throughtimeout- the send timeout job to cancel on a reply
Method Details
getExpiration
public long getExpiration()Description copied from interface:ReplyCallbackWhen does this callback expire?- Specified by:
getExpirationin interfaceReplyCallback- Returns:
- when the callback expires, in milliseconds since the context clock's epoch
onReply
public void onReply()Description copied from interface:ReplyCallbackA reply was received.- Specified by:
onReplyin interfaceReplyCallback