Class DefaultIdleStateEvent
java.lang.Object
org.jboss.netty.handler.timeout.DefaultIdleStateEvent
- All Implemented Interfaces:
ChannelEvent, IdleStateEvent
The default
IdleStateEvent implementation.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultIdleStateEvent(Channel channel, IdleState state, long lastActivityTimeMillis) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns theChannelwhich is associated with this event.Returns theChannelFuturewhich is associated with this event.longReturns the last time when I/O occurred in milliseconds.getState()Returns the detailed idle state.toString()
-
Field Details
-
channel
-
state
-
lastActivityTimeMillis
private final long lastActivityTimeMillis
-
-
Constructor Details
-
DefaultIdleStateEvent
-
-
Method Details
-
getChannel
Description copied from interface:ChannelEventReturns theChannelwhich is associated with this event.- Specified by:
getChannelin interfaceChannelEvent
-
getFuture
Description copied from interface:ChannelEventReturns theChannelFuturewhich is associated with this event. If this event is an upstream event, this method will always return aSucceededChannelFuturebecause the event has occurred already. If this event is a downstream event (i.e. I/O request), the returned future will be notified when the I/O request succeeds or fails.- Specified by:
getFuturein interfaceChannelEvent
-
getState
Description copied from interface:IdleStateEventReturns the detailed idle state.- Specified by:
getStatein interfaceIdleStateEvent
-
getLastActivityTimeMillis
public long getLastActivityTimeMillis()Description copied from interface:IdleStateEventReturns the last time when I/O occurred in milliseconds.- Specified by:
getLastActivityTimeMillisin interfaceIdleStateEvent
-
toString
-