com.alipay.remoting
Enum ResponseStatus

java.lang.Object
  extended by java.lang.Enum<ResponseStatus>
      extended by com.alipay.remoting.ResponseStatus
All Implemented Interfaces:
Serializable, Comparable<ResponseStatus>

public enum ResponseStatus
extends Enum<ResponseStatus>

Status of the response.


Enum Constant Summary
CLIENT_SEND_ERROR
           
CODEC_EXCEPTION
           
CONNECTION_CLOSED
           
ERROR
           
ERROR_COMM
           
NO_PROCESSOR
           
SERVER_DESERIAL_EXCEPTION
           
SERVER_EXCEPTION
           
SERVER_SERIAL_EXCEPTION
           
SERVER_THREADPOOL_BUSY
           
SUCCESS
           
TIMEOUT
           
UNKNOWN
           
 
Method Summary
 short getValue()
          Convert to short.
static ResponseStatus valueOf(short value)
          Convert to ResponseStatus.
static ResponseStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResponseStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SUCCESS

public static final ResponseStatus SUCCESS

ERROR

public static final ResponseStatus ERROR

SERVER_EXCEPTION

public static final ResponseStatus SERVER_EXCEPTION

UNKNOWN

public static final ResponseStatus UNKNOWN

SERVER_THREADPOOL_BUSY

public static final ResponseStatus SERVER_THREADPOOL_BUSY

ERROR_COMM

public static final ResponseStatus ERROR_COMM

NO_PROCESSOR

public static final ResponseStatus NO_PROCESSOR

TIMEOUT

public static final ResponseStatus TIMEOUT

CLIENT_SEND_ERROR

public static final ResponseStatus CLIENT_SEND_ERROR

CODEC_EXCEPTION

public static final ResponseStatus CODEC_EXCEPTION

CONNECTION_CLOSED

public static final ResponseStatus CONNECTION_CLOSED

SERVER_SERIAL_EXCEPTION

public static final ResponseStatus SERVER_SERIAL_EXCEPTION

SERVER_DESERIAL_EXCEPTION

public static final ResponseStatus SERVER_DESERIAL_EXCEPTION
Method Detail

values

public static ResponseStatus[] 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 (ResponseStatus c : ResponseStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ResponseStatus valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getValue

public short getValue()
Convert to short.

Returns:

valueOf

public static ResponseStatus valueOf(short value)
Convert to ResponseStatus.

Parameters:
value -
Returns:


Copyright © 2018. All rights reserved.