java.lang.Object
net.i2p.router.Banlist.Entry
- Enclosing class:
Banlist
Entry representing a banned peer with expiration and reason information.
Field Summary
FieldsModifier and TypeFieldDescriptionlongWhen this ban was first recorded, per the i2p clock; 0 when unknown.Why they were banlisted.Separate code so cause can contain {0} for translation.longWhen it should expire, per the i2p clock.Transports to ban, null means all transports.Constructor Summary
ConstructorsMethod Summary
Field Details
expireOn
public long expireOnWhen it should expire, per the i2p clock.addedOn
public long addedOnWhen this ban was first recorded, per the i2p clock; 0 when unknown.Separate from
expireOnbecause 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
Why they were banlisted.causeCode
Separate code so cause can contain {0} for translation.transports
Constructor Details
Entry
public Entry()Constructs an empty entry.