public class DefaultIdleStateEvent extends java.lang.Object implements IdleStateEvent
IdleStateEvent implementation.| Modifier and Type | Field and Description |
|---|---|
private Channel |
channel |
private long |
lastActivityTimeMillis |
private IdleState |
state |
| 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.
|
java.lang.String |
toString() |
private final Channel channel
private final IdleState state
private final long lastActivityTimeMillis
public Channel getChannel()
ChannelEventChannel which is associated with this event.getChannel in interface 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 in interface ChannelEventpublic IdleState getState()
IdleStateEventgetState in interface IdleStateEventpublic long getLastActivityTimeMillis()
IdleStateEventgetLastActivityTimeMillis in interface IdleStateEventpublic java.lang.String toString()
toString in class java.lang.Object