public enum RecoveryStrategy extends Enum<RecoveryStrategy>
| Enum Constant and Description |
|---|
CLOSE
Indicates that the session should be closed when lost.
|
RECOVER
Indicates that the session should be recovered when lost.
|
| Modifier and Type | Method and Description |
|---|---|
static RecoveryStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecoveryStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecoveryStrategy RECOVER
public static final RecoveryStrategy CLOSE
public static RecoveryStrategy[] values()
for (RecoveryStrategy c : RecoveryStrategy.values()) System.out.println(c);
public static RecoveryStrategy 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 nullCopyright © 2013–2017. All rights reserved.