Package org.apache.mina.core.session
Enum IoEventType
- java.lang.Object
-
- java.lang.Enum<IoEventType>
-
- org.apache.mina.core.session.IoEventType
-
- All Implemented Interfaces:
Serializable
,Comparable<IoEventType>
public enum IoEventType extends Enum<IoEventType>
AnEnum
that represents the type of I/O events and requests. Most users won't need to use this class. It is usually used by internal components to store I/O events.- Author:
- Apache MINA Project
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSE
A close has occuredEVENT
A generic event has been generatedEXCEPTION_CAUGHT
An exception has been caughtINPUT_CLOSED
The Input part of the socket has been closedMESSAGE_RECEIVED
A message has been receivedMESSAGE_SENT
A message has been sentSESSION_CLOSED
The session has been closedSESSION_CREATED
The session has been createdSESSION_IDLE
The session is idleSESSION_OPENED
The session has been openedWRITE
A write has pccired
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IoEventType
valueOf(String name)
Returns the enum constant of this type with the specified name.static IoEventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SESSION_CREATED
public static final IoEventType SESSION_CREATED
The session has been created
-
SESSION_OPENED
public static final IoEventType SESSION_OPENED
The session has been opened
-
SESSION_CLOSED
public static final IoEventType SESSION_CLOSED
The session has been closed
-
MESSAGE_RECEIVED
public static final IoEventType MESSAGE_RECEIVED
A message has been received
-
MESSAGE_SENT
public static final IoEventType MESSAGE_SENT
A message has been sent
-
SESSION_IDLE
public static final IoEventType SESSION_IDLE
The session is idle
-
EXCEPTION_CAUGHT
public static final IoEventType EXCEPTION_CAUGHT
An exception has been caught
-
WRITE
public static final IoEventType WRITE
A write has pccired
-
CLOSE
public static final IoEventType CLOSE
A close has occured
-
INPUT_CLOSED
public static final IoEventType INPUT_CLOSED
The Input part of the socket has been closed
-
EVENT
public static final IoEventType EVENT
A generic event has been generated
-
-
Method Detail
-
values
public static IoEventType[] 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 (IoEventType c : IoEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IoEventType 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 nameNullPointerException
- if the argument is null
-
-