java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.client.ClientConnectionRunner.MessageDeliveryStatusUpdate
All Implemented Interfaces:
Job
Enclosing class:
ClientConnectionRunner

private class ClientConnectionRunner.MessageDeliveryStatusUpdateextends JobImpl
Sends a message status update to the client.
  • Field Details

    • _sessId

      private final SessionId _sessId
      The session the message belongs to.
    • _messageId

      private final MessageId _messageId
      The message being updated.
    • _messageNonce

      private final long _messageNonce
      Nonce the client matches the update to.
    • _status

      private final int _status
      The status code to report.
    • _lastTried

      private long _lastTried
      When the update was last queued.
    • _requeueCount

      private int _requeueCount
      Times the update has been requeued.
  • Constructor Details

    • MessageDeliveryStatusUpdate

      public MessageDeliveryStatusUpdate(SessionId sid, MessageId id, long messageNonce, int status)
      Do not use for status = STATUS_SEND_ACCEPTED; use ackSendMessage() for that.
      Parameters:
      sid - the session the message belongs to
      id - the router's ID for this message
      messageNonce - the client's ID for this message
      status - see I2CP MessageStatusMessage for success/failure codes
  • Method Details

    • getName

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

      public void runJob()
      Note that this sends the Guaranteed status codes, even though we only support best effort.