Class PeerSelectionCriteria

java.lang.Object
net.i2p.router.peermanager.PeerSelectionCriteria

class PeerSelectionCriteria extends Object
Defines the criteria for selecting a set of peers for use when searching the PeerManager Only used by PeerTestJob, which may not have a point.
Since:
moved from router to peermanager in 0.9.40
  • Field Details

    • PURPOSE_TEST

      public static final int PURPOSE_TEST
      The peers will be used for a test message
      See Also:
  • Constructor Details

    • PeerSelectionCriteria

      PeerSelectionCriteria()
  • Method Details

    • getMinimumRequired

      public int getMinimumRequired()
      Minimum number of peers required
    • setMinimumRequired

      public void setMinimumRequired(int min)
    • getMaximumRequired

      public int getMaximumRequired()
      Maximum number of peers required
    • setMaximumRequired

      public void setMaximumRequired(int max)
    • getPurpose

      public int getPurpose()
      Purpose for which the peers will be used
    • setPurpose

      public void setPurpose(int purpose)