Enum IoHandlerEvents
- java.lang.Object
-
- java.lang.Enum<IoHandlerEvents>
-
- org.apache.mina.statemachine.event.IoHandlerEvents
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IoHandlerEvents>
public enum IoHandlerEvents extends java.lang.Enum<IoHandlerEvents>
Defines all possible MINAIoHandlerevents for use inIoHandlerTransitionannotations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYThe wildcard eventEXCEPTION_CAUGHTThe Exception Caught eventINPUT_CLOSEDThe InputClosed eventMESSAGE_RECEIVEDThe Message Received eventMESSAGE_SENTThe Message Sent eventSESSION_CLOSEDThe Session Opened eventSESSION_CREATEDThe Session Created eventSESSION_IDLEThe Session Idle eventSESSION_OPENEDThe Session Opened event
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringvalue
-
Constructor Summary
Constructors Modifier Constructor Description privateIoHandlerEvents(java.lang.String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()static IoHandlerEventsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IoHandlerEvents[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final IoHandlerEvents ANY
The wildcard event
-
SESSION_CREATED
public static final IoHandlerEvents SESSION_CREATED
The Session Created event
-
SESSION_OPENED
public static final IoHandlerEvents SESSION_OPENED
The Session Opened event
-
SESSION_CLOSED
public static final IoHandlerEvents SESSION_CLOSED
The Session Opened event
-
SESSION_IDLE
public static final IoHandlerEvents SESSION_IDLE
The Session Idle event
-
MESSAGE_RECEIVED
public static final IoHandlerEvents MESSAGE_RECEIVED
The Message Received event
-
MESSAGE_SENT
public static final IoHandlerEvents MESSAGE_SENT
The Message Sent event
-
INPUT_CLOSED
public static final IoHandlerEvents INPUT_CLOSED
The InputClosed event
-
EXCEPTION_CAUGHT
public static final IoHandlerEvents EXCEPTION_CAUGHT
The Exception Caught event
-
-
Method Detail
-
values
public static IoHandlerEvents[] 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 (IoHandlerEvents c : IoHandlerEvents.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IoHandlerEvents valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<IoHandlerEvents>
-
-