public class DefaultIdleStateEvent extends Object implements IdleStateEvent
IdleStateEvent
implementation.Constructor and Description |
---|
DefaultIdleStateEvent(Channel channel,
IdleState state,
long lastActivityTimeMillis)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Channel |
getChannel()
Returns the
Channel which is associated with this event. |
ChannelFuture |
getFuture()
Returns the
ChannelFuture which is associated with this event. |
long |
getLastActivityTimeMillis()
Returns the last time when I/O occurred in milliseconds.
|
IdleState |
getState()
Returns the detailed idle state.
|
String |
toString() |
public Channel getChannel()
ChannelEvent
Channel
which is associated with this event.getChannel
in interface ChannelEvent
public ChannelFuture getFuture()
ChannelEvent
ChannelFuture
which is associated with this event.
If this event is an upstream event, this method will always return a
SucceededChannelFuture
because 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.getFuture
in interface ChannelEvent
public IdleState getState()
IdleStateEvent
getState
in interface IdleStateEvent
public long getLastActivityTimeMillis()
IdleStateEvent
getLastActivityTimeMillis
in interface IdleStateEvent
Copyright © 2008-2013 The Netty Project. All Rights Reserved.