java.lang.Object
net.i2p.router.Banlist.Entry
Enclosing class:
Banlist

public static class Banlist.Entryextends Object
Entry representing a banned peer with expiration and reason information.
  • Field Details

    • expireOn

      public long expireOn
      When it should expire, per the i2p clock.
    • addedOn

      public long addedOn
      When this ban was first recorded, per the i2p clock; 0 when unknown.

      Separate from expireOn because the ban duration varies by class and by transport, so the start time cannot be derived from the expiry. Needed to answer "was this peer already banned when the build was dispatched, or did the ban land mid-flight" — the two need different fixes, and only the duration was previously observable.

      On a re-ban that keeps the older, longer expiry this retains the original start time: what matters is how long the banlist has been holding this peer, not when the latest report arrived.

    • cause

      public String cause
      Why they were banlisted.
    • causeCode

      public String causeCode
      Separate code so cause can contain {0} for translation.
    • transports

      public Set<String> transports
      Transports to ban, null means all transports.
  • Constructor Details

    • Entry

      public Entry()
      Constructs an empty entry.