public class IoSessionEvent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
logger |
private IoFilter.NextFilter |
nextFilter
The next filter in the chain.
|
private IoSession |
session
The session.
|
private IdleStatus |
status
The idle status if type value is
IoSessionEventType.IDLE,
null otherwise. |
private IoSessionEventType |
type
The event type.
|
| Constructor and Description |
|---|
IoSessionEvent(IoFilter.NextFilter nextFilter,
IoSession session,
IdleStatus status)
Creates an instance of this class when event type is
IoSessionEventType.IDLE. |
IoSessionEvent(IoFilter.NextFilter nextFilter,
IoSession session,
IoSessionEventType type)
Creates an instance of this class when event type differs from
IoSessionEventType.IDLE. |
| Modifier and Type | Method and Description |
|---|---|
void |
deliverEvent()
Delivers this event to the next filter.
|
private static void |
deliverEvent(IoFilter.NextFilter nextFilter,
IoSession session,
IoSessionEventType type,
IdleStatus status)
Static method which effectively delivers the specified event to the next filter
nextFilter on the session. |
IoFilter.NextFilter |
getNextFilter()
Returns the next filter to which the event should be sent.
|
IoSession |
getSession()
Returns the session on which the event occured.
|
IdleStatus |
getStatus()
Returns the idle status of the event.
|
IoSessionEventType |
getType()
Returns the event type that occured.
|
java.lang.String |
toString() |
private static final org.slf4j.Logger logger
private final IoFilter.NextFilter nextFilter
private final IoSession session
private final IoSessionEventType type
private IdleStatus status
IoSessionEventType.IDLE,
null otherwise.public IoSessionEvent(IoFilter.NextFilter nextFilter, IoSession session, IoSessionEventType type)
IoSessionEventType.IDLE.nextFilter - the next filtersession - the sessiontype - the event typepublic IoSessionEvent(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status)
IoSessionEventType.IDLE.nextFilter - the next filtersession - the sessionstatus - the idle statuspublic void deliverEvent()
private static void deliverEvent(IoFilter.NextFilter nextFilter, IoSession session, IoSessionEventType type, IdleStatus status)
nextFilter on the session.nextFilter - the next filtersession - the session on which the event occuredtype - the event typestatus - the idle status should only be non null only if the event type is
IoSessionEventType.IDLEpublic java.lang.String toString()
toString in class java.lang.Objectpublic IdleStatus getStatus()
public IoFilter.NextFilter getNextFilter()
public IoSession getSession()
public IoSessionEventType getType()