java.lang.Object
net.i2p.router.tunnel.pool.ExpireJob.TunnelExpiration
- Enclosing class:
ExpireJob
One tunnel tracked for expiration.
Field Summary
FieldsModifier and TypeFieldDescription(package private) final PooledTunnelCreatorConfigThe tunnel's config.(package private) final longWhen the tunnel was created.(package private) final longWhen the tunnel was added to the map.(package private) longWhen the tunnel expires.(package private) booleanTrue once the first phase was done.(package private) final LongThe tunnel's key in the map.(package private) intExtensions granted while untested.Constructor Summary
ConstructorsConstructorDescriptionTunnelExpiration(PooledTunnelCreatorConfig cfg, Long key, long expire, long drop, long created) Tracks one tunnel for expiration.Method Summary
Field Details
config
The tunnel's config.tunnelKey
The tunnel's key in the map.expirationTime
volatile long expirationTimeWhen the tunnel expires.dropTime
final long dropTimeWhen the tunnel was added to the map.createdAt
final long createdAtWhen the tunnel was created.phase1Complete
volatile boolean phase1CompleteTrue once the first phase was done.untestedExtensions
int untestedExtensionsExtensions granted while untested.
Constructor Details
TunnelExpiration
TunnelExpiration(PooledTunnelCreatorConfig cfg, Long key, long expire, long drop, long created) Tracks one tunnel for expiration.- Parameters:
cfg- the tunnel's configkey- the tunnel's key in the mapexpire- when the tunnel expiresdrop- when the tunnel was added to the mapcreated- when the tunnel was created