Package org.apache.mina.proxy.event
Class IoSessionEvent
- java.lang.Object
-
- org.apache.mina.proxy.event.IoSessionEvent
-
public class IoSessionEvent extends Object
IoSessionEvent.java - Wrapper Class for enqueued events.- Since:
- MINA 2.0.0-M3
- Author:
- Apache MINA Project
-
-
Constructor Summary
Constructors Constructor Description IoSessionEvent(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status)
Creates an instance of this class when event type isIoSessionEventType.IDLE
.IoSessionEvent(IoFilter.NextFilter nextFilter, IoSession session, IoSessionEventType type)
Creates an instance of this class when event type differs fromIoSessionEventType.IDLE
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deliverEvent()
Delivers this event to the next filter.IoFilter.NextFilter
getNextFilter()
IoSession
getSession()
IdleStatus
getStatus()
IoSessionEventType
getType()
String
toString()
-
-
-
Constructor Detail
-
IoSessionEvent
public IoSessionEvent(IoFilter.NextFilter nextFilter, IoSession session, IoSessionEventType type)
Creates an instance of this class when event type differs fromIoSessionEventType.IDLE
.- Parameters:
nextFilter
- the next filtersession
- the sessiontype
- the event type
-
IoSessionEvent
public IoSessionEvent(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status)
Creates an instance of this class when event type isIoSessionEventType.IDLE
.- Parameters:
nextFilter
- the next filtersession
- the sessionstatus
- the idle status
-
-
Method Detail
-
deliverEvent
public void deliverEvent()
Delivers this event to the next filter.
-
getStatus
public IdleStatus getStatus()
- Returns:
- the idle status of the event
-
getNextFilter
public IoFilter.NextFilter getNextFilter()
- Returns:
- the next filter to which the event should be sent.
-
getSession
public IoSession getSession()
- Returns:
- the session on which the event occurred.
-
getType
public IoSessionEventType getType()
- Returns:
- the event type that occurred.
-
-