java.lang.Object
net.i2p.router.tunnel.pool.TestJob.PendingTest
Enclosing class:
TestJob

static final class TestJob.PendingTestextends Object
A first-test candidate waiting in the batch buffer.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final PooledTunnelCreatorConfig
    The tunnel build config this candidate will test.
    (package private) final Long
    Tunnel key captured at offer time.
    (package private) final TunnelPool
    The pool that owns the tunnel, captured at offer time.
    (package private) final String
    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 Summary

    Constructors
    Constructor
    Description
    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

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • cfg

      The tunnel build config this candidate will test.
    • pool

      final TunnelPool pool
      The pool that owns the tunnel, captured at offer time.
    • key

      final Long 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

      final String 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 test
      pool - the pool that owns the tunnel