Package org.jboss.netty.handler.timeout
Class DefaultIdleStateEvent
- java.lang.Object
-
- org.jboss.netty.handler.timeout.DefaultIdleStateEvent
-
- All Implemented Interfaces:
ChannelEvent,IdleStateEvent
public class DefaultIdleStateEvent extends java.lang.Object implements IdleStateEvent
The defaultIdleStateEventimplementation.
-
-
Field Summary
Fields Modifier and Type Field Description private Channelchannelprivate longlastActivityTimeMillisprivate IdleStatestate
-
Constructor Summary
Constructors Constructor Description DefaultIdleStateEvent(Channel channel, IdleState state, long lastActivityTimeMillis)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelgetChannel()Returns theChannelwhich is associated with this event.ChannelFuturegetFuture()Returns theChannelFuturewhich is associated with this event.longgetLastActivityTimeMillis()Returns the last time when I/O occurred in milliseconds.IdleStategetState()Returns the detailed idle state.java.lang.StringtoString()
-
-
-
Method Detail
-
getChannel
public Channel getChannel()
Description copied from interface:ChannelEventReturns theChannelwhich is associated with this event.- Specified by:
getChannelin interfaceChannelEvent
-
getFuture
public ChannelFuture 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
public IdleState 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-