java.lang.Object
net.i2p.router.transport.udp.EstablishmentManager.Establisher
- All Implemented Interfaces:
Runnable
- Enclosing class:
EstablishmentManager
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longWhen the failsafe pass last ran.private longWhen the establishment state was last printed.private static final longInterval between failsafe passes.private static final longInterval between establishment state prints.Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionprivate voiddoFailsafe(long now) Perform failsafe cleanup of stale establishment states.private voiddoPass()Prints the active establishment counts if the interval passed.voidrun()
Field Details
_lastFailsafe
private long _lastFailsafeWhen the failsafe pass last ran.FAILSAFE_INTERVAL
private static final long FAILSAFE_INTERVALInterval between failsafe passes.- See Also:
_lastPrinted
private long _lastPrintedWhen the establishment state was last printed.PRINT_INTERVAL
private static final long PRINT_INTERVALInterval between establishment state prints.- See Also:
Constructor Details
Establisher
private Establisher()Runs one SSU handshake.
Method Details
run
doPass
private void doPass()Prints the active establishment counts if the interval passed.doFailsafe
private void doFailsafe(long now) Perform failsafe cleanup of stale establishment states.- Parameters:
now- the current time