public enum KeepAliveStrategy extends Enum<KeepAliveStrategy>
Enum Constant and Description |
---|
ALL_SUCCEEDED
Keep alive all succeeded pairs.
|
SELECTED_AND_TCP
Keep alive the selected pair and any TCP pairs.
|
SELECTED_ONLY
Only keep alive the selected pair.
|
Modifier and Type | Method and Description |
---|---|
static KeepAliveStrategy |
fromString(String string) |
String |
toString() |
static KeepAliveStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeepAliveStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeepAliveStrategy SELECTED_ONLY
public static final KeepAliveStrategy SELECTED_AND_TCP
public static final KeepAliveStrategy ALL_SUCCEEDED
private String name
public static KeepAliveStrategy[] values()
for (KeepAliveStrategy c : KeepAliveStrategy.values()) System.out.println(c);
public static KeepAliveStrategy 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 KeepAliveStrategy fromString(String string)
string
- the name of the strategy.KeepAliveStrategy
with name equal to the given
string, or null
if there is no such strategy.public String toString()
toString
in class Enum<KeepAliveStrategy>
Copyright © 2018. All rights reserved.