public class DefaultIdleStateEvent extends java.lang.Object implements IdleStateEvent
IdleStateEvent implementation.| 构造器和说明 |
|---|
DefaultIdleStateEvent(Channel channel,
IdleState state,
long lastActivityTimeMillis)
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
java.lang.String |
toString() |
public Channel getChannel()
ChannelEventChannel which is associated with this event.getChannel 在接口中 ChannelEventpublic ChannelFuture getFuture()
ChannelEventChannelFuture 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 在接口中 ChannelEventpublic IdleState getState()
IdleStateEventgetState 在接口中 IdleStateEventpublic long getLastActivityTimeMillis()
IdleStateEventgetLastActivityTimeMillis 在接口中 IdleStateEventpublic java.lang.String toString()
toString 在类中 java.lang.Object