Package io.grpc.internal
Enum KeepAliveManager.State
- java.lang.Object
-
- java.lang.Enum<KeepAliveManager.State>
-
- io.grpc.internal.KeepAliveManager.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<KeepAliveManager.State>
- Enclosing class:
- KeepAliveManager
private static enum KeepAliveManager.State extends java.lang.Enum<KeepAliveManager.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISCONNECTED
IDLE
IDLE_AND_PING_SENT
PING_DELAYED
PING_SCHEDULED
PING_SENT
-
Constructor Summary
Constructors Modifier Constructor Description private
State()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeepAliveManager.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static KeepAliveManager.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDLE
public static final KeepAliveManager.State IDLE
-
PING_SCHEDULED
public static final KeepAliveManager.State PING_SCHEDULED
-
PING_DELAYED
public static final KeepAliveManager.State PING_DELAYED
-
PING_SENT
public static final KeepAliveManager.State PING_SENT
-
IDLE_AND_PING_SENT
public static final KeepAliveManager.State IDLE_AND_PING_SENT
-
DISCONNECTED
public static final KeepAliveManager.State DISCONNECTED
-
-
Method Detail
-
values
public static KeepAliveManager.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KeepAliveManager.State c : KeepAliveManager.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeepAliveManager.State valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-