public enum FriendState extends Enum<FriendState>
Enum Constant and Description |
---|
DOWN
Friend server is reachable but root services resource cannot be retrieved for any reason.
|
OFFLINE
A connection with the friend server cannot be established, typically when the host is unknown.
|
OK
Friend server is reachable and accepting the consumer information.
|
REJECTING
Friend server is up and running but is rejecting the consumer information.
|
UNEXPECTED_ERROR
An error occurred when computing the state.
|
Modifier and Type | Method and Description |
---|---|
static FriendState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FriendState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FriendState UNEXPECTED_ERROR
public static final FriendState OFFLINE
public static final FriendState DOWN
public static final FriendState REJECTING
public static final FriendState OK
public static FriendState[] values()
for (FriendState c : FriendState.values()) System.out.println(c);
public static FriendState 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 null