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

private class StoreJob.FailedJobextends JobImpl
Job to handle failed store attempts.

Called when a particular peer failed to respond before the timeout was reached, or if the peer could not be contacted at all.

  • Field Details

    • _peer

      private final RouterInfo _peer
      The peer that failed to respond.
    • _sendOn

      private final long _sendOn
      When the message was sent.
    • _wasRun

      private final AtomicBoolean _wasRun
      Track if job has already run to prevent duplicate handling.
  • Constructor Details

    • FailedJob

      public FailedJob(RouterContext enclosingContext, RouterInfo peer, long sendOn)
      Create a failed job for a peer.
      Parameters:
      enclosingContext - the router context
      peer - the peer the store message was sent to
      sendOn - when the message was sent
  • Method Details

    • runJob

      public void runJob()
      Handle the failed store attempt.
    • getName

      public String getName()
      Name of this failed job.
      Returns:
      job name