public enum ReconnectionPolicy extends Enum<ReconnectionPolicy>
Enum Constant and Description |
---|
EVERY_HALF_HOUR
Makes a new connection if the current connection has lasted for more than
half an hour.
|
EVERY_NOTIFICATION
Makes a new connection for every message being sent.
|
NEVER
Only reconnect if absolutely needed, e.g.
|
Modifier and Type | Method and Description |
---|---|
static ReconnectionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReconnectionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReconnectionPolicy NEVER
public static final ReconnectionPolicy EVERY_HALF_HOUR
public static final ReconnectionPolicy EVERY_NOTIFICATION
public static ReconnectionPolicy[] values()
for (ReconnectionPolicy c : ReconnectionPolicy.values()) System.out.println(c);
public static ReconnectionPolicy 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 nullApache Camel