java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.message.OutboundClientMessageOneShotJob.SendSuccessJob
All Implemented Interfaces:
Job, ReplyJob
Direct Known Subclasses:
OutboundClientMessageOneShotJob.ECIESReplyCallback
Enclosing class:
OutboundClientMessageOneShotJob

private class OutboundClientMessageOneShotJob.SendSuccessJobextends JobImpl implements ReplyJob
Called after we get a confirmation that the message was delivered safely. This may be run after failure.
  • Field Details

  • Constructor Details

    • SendSuccessJob

      public SendSuccessJob(SessionKey key, TagSetHandle tags, LeaseSet ls, OutboundClientMessageOneShotJob.SendTimeoutJob timeout)
      Create a new success job that will be fired when the message encrypted with the given session key and bearing the specified tags are confirmed delivered. This is only instantiated if we are expecting a reply.
      Parameters:
      key - may be null
      tags - may be null
      ls - the delivered leaseset or null
      timeout - will be cancelled when this is run, may be null
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Job
      Descriptive name of the task.
      Specified by:
      getName in interface Job
      Returns:
      the descriptive name of the task
    • runJob

      public void runJob()
      May be run after SendTimeoutJob, will re-add the tags.
      Specified by:
      runJob in interface Job
    • setMessage

      public void setMessage(I2NPMessage msg)
      Description copied from interface: ReplyJob
      Called by InNetMessagePool when an I2NPMessage matching a MessageSelector registered with the OutboundMessageRegistry is received.
      Specified by:
      setMessage in interface ReplyJob
      Parameters:
      msg - the received I2NP message