class PeerSelectionCriteria extends Object
| Modifier and Type | Field and Description |
|---|---|
static int | PURPOSE_TESTThe peers will be used for a test message |
| Constructor and Description |
|---|
PeerSelectionCriteria() |
| Modifier and Type | Method and Description |
|---|---|
int | getMaximumRequired()Maximum number of peers required |
int | getMinimumRequired()Minimum number of peers required |
int | getPurpose()Purpose for which the peers will be used |
void | setMaximumRequired(int max)Set the maximum number of peers required |
void | setMinimumRequired(int min)Set the minimum number of peers required |
void | setPurpose(int purpose)Set the purpose for which the peers will be used |
public static final int PURPOSE_TEST
public int getMaximumRequired()
public int getMinimumRequired()
public int getPurpose()
public void setMaximumRequired(int max)
max - the maximum number of peerspublic void setMinimumRequired(int min)
min - the minimum number of peerspublic void setPurpose(int purpose)
purpose - the purpose