com.alibaba.dubbo.remoting.transport.dispatcher
Enum ChannelEventRunnable.ChannelState

java.lang.Object
  extended by java.lang.Enum<ChannelEventRunnable.ChannelState>
      extended by com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.ChannelState
All Implemented Interfaces:
Serializable, Comparable<ChannelEventRunnable.ChannelState>
Enclosing class:
ChannelEventRunnable

public static enum ChannelEventRunnable.ChannelState
extends Enum<ChannelEventRunnable.ChannelState>

ChannelState

Author:
william.liangf

Enum Constant Summary
CAUGHT
          CAUGHT
CONNECTED
          CONNECTED
DISCONNECTED
          DISCONNECTED
RECEIVED
          RECEIVED
SENT
          SENT
 
Method Summary
static ChannelEventRunnable.ChannelState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ChannelEventRunnable.ChannelState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONNECTED

public static final ChannelEventRunnable.ChannelState CONNECTED
CONNECTED


DISCONNECTED

public static final ChannelEventRunnable.ChannelState DISCONNECTED
DISCONNECTED


SENT

public static final ChannelEventRunnable.ChannelState SENT
SENT


RECEIVED

public static final ChannelEventRunnable.ChannelState RECEIVED
RECEIVED


CAUGHT

public static final ChannelEventRunnable.ChannelState CAUGHT
CAUGHT

Method Detail

values

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

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

valueOf

public static ChannelEventRunnable.ChannelState 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


Copyright © 2012–2017 Alibaba. All rights reserved.