java.lang.Object
net.i2p.router.tunnel.pool.TestJob.PendingTest
- Enclosing class:
TestJob
A first-test candidate waiting in the batch buffer.
Field Summary
FieldsModifier and TypeFieldDescription(package private) final PooledTunnelCreatorConfigThe tunnel build config this candidate will test.(package private) final LongTunnel key captured at offer time.(package private) final TunnelPoolThe pool that owns the tunnel, captured at offer time.(package private) final StringPool identity captured at offer time, so a buffered candidate can be re-verified against its own pool at drain time without trusting a possibly-null cfg.getTunnelPool() read.Constructor Summary
ConstructorsConstructorDescriptionPendingTest(PooledTunnelCreatorConfig cfg, TunnelPool pool) Capture the config's key and pool identity now, so the buffer can be de-duplicated and re-verified at drain time even if the config changes.Method Summary
Field Details
cfg
The tunnel build config this candidate will test.pool
The pool that owns the tunnel, captured at offer time.key
Tunnel key captured at offer time. Held so the buffer can be de-duplicated and evicted consistently even if the config's state changes while it waits (or the key read fails later), which keeps bufferedKeys an exact mirror of the buffer contents.poolId
Pool identity captured at offer time, so a buffered candidate can be re-verified against its own pool at drain time without trusting a possibly-null cfg.getTunnelPool() read.
Constructor Details
PendingTest
PendingTest(PooledTunnelCreatorConfig cfg, TunnelPool pool) Capture the config's key and pool identity now, so the buffer can be de-duplicated and re-verified at drain time even if the config changes.- Parameters:
cfg- the tunnel build config to testpool- the pool that owns the tunnel