Package net.i2p.router.peermanager
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 Summary
Fields Modifier and Type Field Description static int
PURPOSE_TEST
The peers will be used for a test message -
Constructor Summary
Constructors Constructor Description PeerSelectionCriteria()
-
Method Summary
Modifier and Type Method Description int
getMaximumRequired()
Maximum number of peers requiredint
getMinimumRequired()
Minimum number of peers requiredint
getPurpose()
Purpose for which the peers will be usedvoid
setMaximumRequired(int max)
void
setMinimumRequired(int min)
void
setPurpose(int purpose)
-
Field Details
-
PURPOSE_TEST
public static final int PURPOSE_TESTThe peers will be used for a test message- See Also:
- Constant Field Values
-
-
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)
-