public static enum EndpointDefinition.Type extends Enum<EndpointDefinition.Type>
Enum Constant and Description |
---|
FO_ONLY
Fail-over to the next address in list if the active address fails.
|
RANDOM
Random selection of the addresses in the endpoint.
|
RANDOM_W_FO
Random selection with fail-over of the addresses.
|
RR_ONLY
Round-Robin selection of addresses in the endpoint.
|
RR_W_FO
Round-Robin address selection with fail-over.
|
SINGLE
Single address endpoint.
|
WEIGHTED
Weighted address selection, higher weight denotes more message percentage.
|
WEIGHTED_W_FO
Weighted address selection with failover.
|
Modifier and Type | Method and Description |
---|---|
static EndpointDefinition.Type |
enumOf(String value)
Gives the enum value of the string representation
|
static EndpointDefinition.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EndpointDefinition.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EndpointDefinition.Type SINGLE
public static final EndpointDefinition.Type RR_ONLY
public static final EndpointDefinition.Type RR_W_FO
public static final EndpointDefinition.Type FO_ONLY
public static final EndpointDefinition.Type WEIGHTED
public static final EndpointDefinition.Type WEIGHTED_W_FO
public static final EndpointDefinition.Type RANDOM
public static final EndpointDefinition.Type RANDOM_W_FO
public static EndpointDefinition.Type[] values()
for (EndpointDefinition.Type c : EndpointDefinition.Type.values()) System.out.println(c);
public static EndpointDefinition.Type 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 static EndpointDefinition.Type enumOf(String value)
value
- the string representation of enumIllegalArgumentException
- if the given string value doesn't correspond to any defined enumCopyright © 2010–2016 AdroitLogic. All rights reserved.