public static enum RaftError.Type extends java.lang.Enum<RaftError.Type>
| Enum Constant and Description |
|---|
APPLICATION_ERROR
User application error.
|
CLOSED_SESSION
Closed session error.
|
COMMAND_FAILURE
Write application error.
|
CONFIGURATION_ERROR
Configuration error.
|
ILLEGAL_MEMBER_STATE
Illegal member state error.
|
NO_LEADER
No leader error.
|
PROTOCOL_ERROR
Internal error.
|
QUERY_FAILURE
Read application error.
|
UNAVAILABLE
Unavailable service error.
|
UNKNOWN_CLIENT
Unknown client error.
|
UNKNOWN_SERVICE
Unknown state machine error.
|
UNKNOWN_SESSION
Unknown session error.
|
| Modifier and Type | Method and Description |
|---|---|
static RaftError.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RaftError.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RaftError.Type NO_LEADER
public static final RaftError.Type QUERY_FAILURE
public static final RaftError.Type COMMAND_FAILURE
public static final RaftError.Type APPLICATION_ERROR
public static final RaftError.Type ILLEGAL_MEMBER_STATE
public static final RaftError.Type UNKNOWN_CLIENT
public static final RaftError.Type UNKNOWN_SESSION
public static final RaftError.Type UNKNOWN_SERVICE
public static final RaftError.Type CLOSED_SESSION
public static final RaftError.Type PROTOCOL_ERROR
public static final RaftError.Type CONFIGURATION_ERROR
public static final RaftError.Type UNAVAILABLE
public static RaftError.Type[] values()
for (RaftError.Type c : RaftError.Type.values()) System.out.println(c);
public static RaftError.Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2013-2019. All Rights Reserved.