public class PeerSelectionCriteria
extends java.lang.Object
修飾子とタイプ | フィールド | 説明 |
---|---|---|
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
|
コンストラクタ | 説明 |
---|---|
PeerSelectionCriteria() |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
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)