java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.StoreJob.SendSuccessJob
All Implemented Interfaces:
Job, ReplyJob
Enclosing class:
StoreJob

private class StoreJob.SendSuccessJobextends JobImpl implements ReplyJob
Job to verify successful store delivery and trigger next steps.

Called after sending a dbStore to a peer successfully, marking the store as successful.

  • Field Details

    • _peer

      private final RouterInfo _peer
      The peer we sent to.
    • _sendThrough

      private final TunnelInfo _sendThrough
      The tunnel used for sending (null for direct).
    • _msgSize

      private final int _msgSize
      Message size in bytes (rounded to 1KB).
  • Constructor Details

    • SendSuccessJob

      public SendSuccessJob(RouterContext enclosingContext, RouterInfo peer)
      Create a success job for direct delivery.
      Parameters:
      enclosingContext - the router context
      peer - 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 context
      peer - the peer the store message was sent to
      sendThrough - the tunnel used for sending
      size - the message size
  • Method Details

    • getName

      public String getName()
      Name of this job.
      Specified by:
      getName in interface Job
      Returns:
      job name
    • runJob

      public void runJob()
      Handle the successful delivery acknowledgment.
      Specified by:
      runJob in interface Job
    • setMessage

      public void setMessage(I2NPMessage message)
      Received message (unused, selector already verified match).
      Specified by:
      setMessage in interface ReplyJob
      Parameters:
      message - the received message (ignored)