java.lang.Object
net.i2p.router.tunnel.pool.ClientPeerSelector.SelectionParams
- Enclosing class:
ClientPeerSelector
Immutable selection parameters computed once per
ClientPeerSelector.selectPeers(TunnelPoolSettings) call.Field Summary
FieldsModifier and TypeFieldDescription(package private) final doubleBuild success ratio cached for this pass.(package private) final booleanTrue to check the closest hop constraint.(package private) final booleanTrue in hidden mode.(package private) final booleanTrue for hidden inbound tunnels only.(package private) final booleanTrue for hidden outbound tunnels only.(package private) final intIP restriction level of the pool.(package private) final MaskedIPSetMasked IPs allowed by the restriction.(package private) final booleanTrue when selecting for an inbound pool.(package private) final booleanTrue to prefer high capacity peers.Constructor Summary
ConstructorsConstructorDescriptionSelectionParams(boolean isInbound, double buildSuccess, boolean useHighCapPrimary, boolean checkClosestHop, boolean hidden, boolean hiddenInbound, boolean hiddenOutbound, int ipRestriction, MaskedIPSet ipSet) Records the selection settings shared by one pass.Method Summary
Field Details
isInbound
final boolean isInboundTrue when selecting for an inbound pool.buildSuccess
final double buildSuccessBuild success ratio cached for this pass.useHighCapPrimary
final boolean useHighCapPrimaryTrue to prefer high capacity peers.checkClosestHop
final boolean checkClosestHopTrue to check the closest hop constraint.ipRestriction
final int ipRestrictionIP restriction level of the pool.ipSet
Masked IPs allowed by the restriction.
Constructor Details
SelectionParams
SelectionParams(boolean isInbound, double buildSuccess, boolean useHighCapPrimary, boolean checkClosestHop, boolean hidden, boolean hiddenInbound, boolean hiddenOutbound, int ipRestriction, MaskedIPSet ipSet) Records the selection settings shared by one pass.- Parameters:
isInbound- true when selecting for an inbound poolbuildSuccess- the build success ratio for this passuseHighCapPrimary- true to prefer high capacity peerscheckClosestHop- true to check the closest hop constrainthidden- true in hidden modehiddenInbound- true for hidden inbound tunnels onlyhiddenOutbound- true for hidden outbound tunnels onlyipRestriction- the IP restriction levelipSet- the masked IPs allowed by the restriction