Package org.apache.mina.core.session
Class IoEvent
- java.lang.Object
-
- org.apache.mina.core.session.IoEvent
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
IoFilterEvent
public class IoEvent extends Object implements Runnable
An I/O event or an I/O request that MINA provides. 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
-
-
Constructor Summary
Constructors Constructor Description IoEvent(IoEventType type, IoSession session, Object parameter)
Creates a new IoEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fire()
Fire an eventObject
getParameter()
IoSession
getSession()
IoEventType
getType()
void
run()
String
toString()
-
-
-
Constructor Detail
-
IoEvent
public IoEvent(IoEventType type, IoSession session, Object parameter)
Creates a new IoEvent- Parameters:
type
- The type of event to createsession
- The associated IoSessionparameter
- The parameter to add to the event
-
-
Method Detail
-
getType
public IoEventType getType()
- Returns:
- The IoEvent type
-
getSession
public IoSession getSession()
- Returns:
- The associated IoSession
-
getParameter
public Object getParameter()
- Returns:
- The stored parameter
-
fire
public void fire()
Fire an event
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-