@PublicAPI public class ThresholdProximityDescriptor extends BestProximityDescriptor
AVG, function, MAX, MIN
ARBITRARY, BEST_PROXIMITY, DIFFERENT_HOSTS_EXCLUSIVE, MULTIPLE_HOSTS_EXCLUSIVE, SINGLE_HOST, SINGLE_HOST_EXCLUSIVE
Modifier | Constructor and Description |
---|---|
protected |
ThresholdProximityDescriptor()
Default constructor for hibernate
|
|
ThresholdProximityDescriptor(long threshold)
Creates a new instance of the descriptor with specified threshold.
|
Modifier and Type | Method and Description |
---|---|
long |
getThreshold()
Gets the threshold value (in microseconds)
|
String |
toString()
Returns the string representation of the descriptor.
|
getDistanceFunction
isTopologyBased
protected ThresholdProximityDescriptor()
public ThresholdProximityDescriptor(long threshold)
threshold
- parameter defining maximum distance value between nodes (in microseconds)public long getThreshold()
public String toString()
TopologyDescriptor
toString
in class TopologyDescriptor