public static enum RemotingProtos.ResponseCode extends Enum<RemotingProtos.ResponseCode>
Enum Constant and Description |
---|
REQUEST_CODE_NOT_SUPPORTED |
REQUEST_PARAM_ERROR |
SUCCESS |
SYSTEM_BUSY |
SYSTEM_ERROR |
Modifier and Type | Method and Description |
---|---|
int |
code() |
static RemotingProtos.ResponseCode |
valueOf(int code) |
static RemotingProtos.ResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RemotingProtos.ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RemotingProtos.ResponseCode SUCCESS
public static final RemotingProtos.ResponseCode SYSTEM_ERROR
public static final RemotingProtos.ResponseCode SYSTEM_BUSY
public static final RemotingProtos.ResponseCode REQUEST_CODE_NOT_SUPPORTED
public static final RemotingProtos.ResponseCode REQUEST_PARAM_ERROR
public static RemotingProtos.ResponseCode[] values()
for (RemotingProtos.ResponseCode c : RemotingProtos.ResponseCode.values()) System.out.println(c);
public static RemotingProtos.ResponseCode 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 RemotingProtos.ResponseCode valueOf(int code)
public int code()
Copyright © 2014. All Rights Reserved.