public enum NominationStrategy extends Enum<NominationStrategy>
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 and Description |
---|
NOMINATE_BEST_RTT
The 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_VALID
The strategy consists in nominating the first host or server reflexive
that's confirmed as valid pair.
|
NOMINATE_FIRST_VALID
The strategy consists in nominating the first candidate pair that's
confirmed as valid.
|
NOMINATE_HIGHEST_PRIO
The strategy consists in nominating the highest priority valid pair once
all checks in a list have completed.
|
NONE
Indicates that ice4j's nominator should nominate valid pairs and that
the application will be handling this.
|
Modifier and Type | Field and Description |
---|---|
private String |
strategyName
The name of this strategy.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
Returns the name of this NominationStrategy.
|
static NominationStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NominationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NominationStrategy NONE
public static final NominationStrategy NOMINATE_FIRST_VALID
public static final NominationStrategy NOMINATE_HIGHEST_PRIO
public static final NominationStrategy NOMINATE_FIRST_HOST_OR_REFLEXIVE_VALID
public static final NominationStrategy NOMINATE_BEST_RTT
private final String strategyName
public static NominationStrategy[] values()
for (NominationStrategy c : NominationStrategy.values()) System.out.println(c);
public static NominationStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<NominationStrategy>
Copyright © 2018. All rights reserved.