public static enum PingServiceHealth.PingState extends Enum<PingServiceHealth.PingState>
Enum Constant and Description |
---|
ERROR
The ping didn't time out but a different error happened.
|
OK
The ping went fine.
|
TIMEOUT
The ping timed out.
|
Modifier and Type | Method and Description |
---|---|
String |
asJson()
Returns the json representation for this enum.
|
static PingServiceHealth.PingState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PingServiceHealth.PingState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PingServiceHealth.PingState OK
public static final PingServiceHealth.PingState TIMEOUT
public static final PingServiceHealth.PingState ERROR
public static PingServiceHealth.PingState[] values()
for (PingServiceHealth.PingState c : PingServiceHealth.PingState.values()) System.out.println(c);
public static PingServiceHealth.PingState 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 String asJson()
Returns the json representation for this enum.
Copyright © 2018 Couchbase, Inc.. All rights reserved.