java.lang.Object
net.i2p.router.tunnel.pool.TunnelPool.ScanResult
Enclosing class:
TunnelPool

private static class TunnelPool.ScanResultextends Object
Result of a pool scan: the chosen tunnel (or null), the backlogged fallback candidate, and the recorded last-resort tunnel.
  • Field Details

    • chosen

      final TunnelInfo chosen
      The tunnel selected for a lease.
    • backlogged

      final TunnelInfo backlogged
      A tunnel held back for backlog, used if needed.
    • lastResort

      final TunnelInfo lastResort
      A tunnel used only when nothing better exists.
  • Constructor Details

    • ScanResult

      ScanResult(TunnelInfo chosen, TunnelInfo backlogged, TunnelInfo lastResort)
      Holds one pass over the tunnel list.
      Parameters:
      chosen - the tunnel selected
      backlogged - the tunnel held for backlog
      lastResort - the fallback tunnel