public class PeerSelectionCriteria extends Object
Modifier and Type | Field and Description |
---|---|
static int |
PURPOSE_GARLIC
The peers will be used for garlic routed messages
|
static int |
PURPOSE_SOURCE_ROUTE
The peers will be used for a source routed reply block message
|
static int |
PURPOSE_TEST
The peers will be used for a test message
|
static int |
PURPOSE_TUNNEL
The peers will be used in a tunnel
|
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) |
void |
setMinimumRequired(int min) |
void |
setPurpose(int purpose) |
public static final int PURPOSE_TUNNEL
public static final int PURPOSE_GARLIC
public static final int PURPOSE_SOURCE_ROUTE
public static final int PURPOSE_TEST
public int getMinimumRequired()
public void setMinimumRequired(int min)
public int getMaximumRequired()
public void setMaximumRequired(int max)
public int getPurpose()
public void setPurpose(int purpose)