Class IoSessionEvent
java.lang.Object
org.apache.mina.proxy.event.IoSessionEvent
IoSessionEvent.java - Wrapper Class for enqueued events.
- Since:
- MINA 2.0.0-M3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final IoFilter.NextFilterThe next filter in the chain.private final IoSessionThe session.private IdleStatusThe idle status if type value isIoSessionEventType.IDLE, null otherwise.private final IoSessionEventTypeThe event type. -
Constructor Summary
ConstructorsConstructorDescriptionIoSessionEvent(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
Modifier and TypeMethodDescriptionvoidDelivers this event to the next filter.private static voiddeliverEvent(IoFilter.NextFilter nextFilter, IoSession session, IoSessionEventType type, IdleStatus status) Static method which effectively delivers the specified event to the next filternextFilteron thesession.getType()toString()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
nextFilter
The next filter in the chain. -
session
The session. -
type
The event type. -
status
The idle status if type value isIoSessionEventType.IDLE, null otherwise.
-
-
Constructor Details
-
IoSessionEvent
Creates an instance of this class when event type differs fromIoSessionEventType.IDLE.- Parameters:
nextFilter- the next filtersession- the sessiontype- the event type
-
IoSessionEvent
Creates an instance of this class when event type isIoSessionEventType.IDLE.- Parameters:
nextFilter- the next filtersession- the sessionstatus- the idle status
-
-
Method Details
-
deliverEvent
public void deliverEvent()Delivers this event to the next filter. -
deliverEvent
private static void deliverEvent(IoFilter.NextFilter nextFilter, IoSession session, IoSessionEventType type, IdleStatus status) Static method which effectively delivers the specified event to the next filternextFilteron thesession.- Parameters:
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 isIoSessionEventType.IDLE
-
toString
-
getStatus
- Returns:
- the idle status of the event
-
getNextFilter
- Returns:
- the next filter to which the event should be sent.
-
getSession
- Returns:
- the session on which the event occurred.
-
getType
- Returns:
- the event type that occurred.
-