java.lang.Object
net.i2p.util.SimpleTimer2.TimedEvent
net.i2p.router.networkdb.kademlia.PersistentDataStore.Disconnector
All Implemented Interfaces:
Runnable
Enclosing class:
PersistentDataStore

private class PersistentDataStore.Disconnectorextends SimpleTimer2.TimedEvent
Schedules a delayed force disconnect for a banned peer.
  • Field Details

    • h

      private final Hash h
      Router hash to disconnect.
    • reason

      private final String reason
      Reason for the disconnect.
  • Constructor Details

    • Disconnector

      public Disconnector(Hash h, String reason)
      Job disconnecting a peer after a delay.
      Parameters:
      h - the peer hash
      reason - the reason for the disconnect
  • Method Details

    • timeReached

      public void timeReached()
      Description copied from class: SimpleTimer2.TimedEvent
      Called when this event's scheduled time arrives. Must NOT block. For periodic events, call schedule(period) at the end to self-reschedule.
      Specified by:
      timeReached in class SimpleTimer2.TimedEvent