java.lang.Object
net.i2p.router.tunnel.pool.ClientPeerSelector.SelectionExclusions
- Enclosing class:
ClientPeerSelector
Excluder + exclusion counts gathered once per selectPeers() call; exclude is wrapped by the hop helpers.
Field Summary
FieldsModifier and TypeFieldDescriptionPeers explicitly excluded from the selection.(package private) final TunnelPeerSelector.ExcluderExcluder of pool and session peers.(package private) HashThe vetted first hop already in rv, or null when the slot is empty.Fresh shared-cooldown peers, first-hop-only filter (null when cooldowns are in the base exclude set).(package private) final intRecent first-hop failures counted.Peers to skip at the first hop.(package private) final intPeers skipped for a fresh cooldown.Constructor Summary
ConstructorsConstructorDescriptionSelectionExclusions(TunnelPeerSelector.Excluder excluder, Set<Hash> exclude, int peerCooldownExcluded, int firstHopFailCount, Set<Hash> firstPeerExclusions, Set<Hash> firstHopCooldowns) Records what must not be selected in one pass.Method Summary
Field Details
excluder
Excluder of pool and session peers.exclude
firstHop
Hash firstHopThe vetted first hop already in rv, or null when the slot is empty.peerCooldownExcluded
final int peerCooldownExcludedPeers skipped for a fresh cooldown.firstHopFailCount
final int firstHopFailCountRecent first-hop failures counted.firstPeerExclusions
firstHopCooldowns
Constructor Details
SelectionExclusions
SelectionExclusions(TunnelPeerSelector.Excluder excluder, Set<Hash> exclude, int peerCooldownExcluded, int firstHopFailCount, Set<Hash> firstPeerExclusions, Set<Hash> firstHopCooldowns) Records what must not be selected in one pass.- Parameters:
excluder- the excluder of pool and session peersexclude- the peers explicitly excludedpeerCooldownExcluded- the peers skipped for a fresh cooldownfirstHopFailCount- the recent first-hop failure countfirstPeerExclusions- the peers to skip at the first hopfirstHopCooldowns- the first hop peers still cooling down