Class 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 Detail

      • PURPOSE_TEST

        public static final int PURPOSE_TEST
        The peers will be used for a test message
        See Also:
        Constant Field Values
    • Constructor Detail

      • PeerSelectionCriteria

        PeerSelectionCriteria()
    • Method Detail

      • 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)