java.lang.Object
net.i2p.router.tunnel.pool.ClientPeerSelector.SelectionParams
Enclosing class:
ClientPeerSelector

private static final class ClientPeerSelector.SelectionParamsextends Object
Immutable selection parameters computed once per ClientPeerSelector.selectPeers(TunnelPoolSettings) call.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final double
    Build success ratio cached for this pass.
    (package private) final boolean
    True to check the closest hop constraint.
    (package private) final boolean
    True in hidden mode.
    (package private) final boolean
    True for hidden inbound tunnels only.
    (package private) final boolean
    True for hidden outbound tunnels only.
    (package private) final int
    IP restriction level of the pool.
    (package private) final MaskedIPSet
    Masked IPs allowed by the restriction.
    (package private) final boolean
    True when selecting for an inbound pool.
    (package private) final boolean
    True to prefer high capacity peers.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Methods inherited from class Object

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

    • isInbound

      final boolean isInbound
      True when selecting for an inbound pool.
    • buildSuccess

      final double buildSuccess
      Build success ratio cached for this pass.
    • useHighCapPrimary

      final boolean useHighCapPrimary
      True to prefer high capacity peers.
    • checkClosestHop

      final boolean checkClosestHop
      True to check the closest hop constraint.
    • hidden

      final boolean hidden
      True in hidden mode.
    • hiddenInbound

      final boolean hiddenInbound
      True for hidden inbound tunnels only.
    • hiddenOutbound

      final boolean hiddenOutbound
      True for hidden outbound tunnels only.
    • ipRestriction

      final int ipRestriction
      IP restriction level of the pool.
    • ipSet

      final MaskedIPSet 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 pool
      buildSuccess - the build success ratio for this pass
      useHighCapPrimary - true to prefer high capacity peers
      checkClosestHop - true to check the closest hop constraint
      hidden - true in hidden mode
      hiddenInbound - true for hidden inbound tunnels only
      hiddenOutbound - true for hidden outbound tunnels only
      ipRestriction - the IP restriction level
      ipSet - the masked IPs allowed by the restriction