-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable
public enum NominationStrategyContains the nomination strategies currently supported by this implementation's DefaultNominator class. Applications can either pick one of these strategies or select NONE in case they want to handle nominations themselves.
Note that NominationStrategies are an ice4j concept and they are not mentioned in RFC 5245.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOMINATE_BEST_RTTThe strategy consists in nominating the pair that showed the best shortest round trip time once all checks in a list completed.
NOMINATE_FIRST_HOST_OR_REFLEXIVE_VALIDThe strategy consists in nominating the first host or server reflexive that's confirmed as valid pair. When a relayed candidate pair is validated first, a timer is armed and only if no host or server reflexive pair gets validated prior to timeout, the relayed ones gets nominated.
NOMINATE_HIGHEST_PRIOThe strategy consists in nominating the highest priority valid pair. Once a pair is validated, if no higher-priority pairs remain outstanding, it is nominated; otherwise, a timer is armed, and if higher-priority pairs are still outstanding after the timeout, the highest-priority validated pair is nominated.
NOMINATE_FIRST_VALIDThe strategy consists in nominating the first candidate pair that's confirmed as valid.
NONEIndicates that ice4j's nominator should nominate valid pairs and that the application will be handling this.
-
Method Summary
Modifier and Type Method Description StringtoString()Returns the name of this NominationStrategy. static NominationStrategyfromString(String string)static Array<NominationStrategy>values()static NominationStrategyvalueOf(String name)-
-
Method Detail
-
fromString
static NominationStrategy fromString(String string)
- Parameters:
string- the name of the strategy.
-
values
static Array<NominationStrategy> values()
-
valueOf
static NominationStrategy valueOf(String name)
-
-
-
-