java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.StoreJob.SendSuccessJob
- Enclosing class:
StoreJob
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intMessage size in bytes (rounded to 1KB).private final RouterInfoThe peer we sent to.private final TunnelInfoThe tunnel used for sending (null for direct).Constructor Summary
ConstructorsConstructorDescriptionSendSuccessJob(RouterContext enclosingContext, RouterInfo peer) Create a success job for direct delivery.SendSuccessJob(RouterContext enclosingContext, RouterInfo peer, TunnelInfo sendThrough, int size) Create a success job for tunnel delivery.Method Summary
All MethodsModifier and TypeMethodDescriptiongetName()Name of this job.voidrunJob()Handle the successful delivery acknowledgment.voidsetMessage(I2NPMessage message) Received message (unused, selector already verified match).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()
Field Details
_peer
The peer we sent to._sendThrough
The tunnel used for sending (null for direct)._msgSize
private final int _msgSizeMessage size in bytes (rounded to 1KB).
Constructor Details
SendSuccessJob
Create a success job for direct delivery.- Parameters:
enclosingContext- the router contextpeer- the peer the store message was sent to
SendSuccessJob
public SendSuccessJob(RouterContext enclosingContext, RouterInfo peer, TunnelInfo sendThrough, int size) Create a success job for tunnel delivery.- Parameters:
enclosingContext- the router contextpeer- the peer the store message was sent tosendThrough- the tunnel used for sendingsize- the message size
Method Details
getName
runJob
setMessage
Received message (unused, selector already verified match).- Specified by:
setMessagein interfaceReplyJob- Parameters:
message- the received message (ignored)