Package net.i2p.router.peermanager
Class PeerSelectionCriteria
java.lang.Object
net.i2p.router.peermanager.PeerSelectionCriteria
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
Modifier and TypeFieldDescriptionstatic final int
The peers will be used for a test message -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Maximum number of peers requiredint
Minimum number of peers requiredint
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:
-
-
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)
-