- java.lang.Object
-
- io.netty5.handler.timeout.IdleStateEvent
-
public class IdleStateEvent extends Object
A user event triggered byIdleStateHandler
when aChannel
is idle.
-
-
Field Summary
Fields Modifier and Type Field Description static IdleStateEvent
ALL_IDLE_STATE_EVENT
static IdleStateEvent
FIRST_ALL_IDLE_STATE_EVENT
static IdleStateEvent
FIRST_READER_IDLE_STATE_EVENT
static IdleStateEvent
FIRST_WRITER_IDLE_STATE_EVENT
static IdleStateEvent
READER_IDLE_STATE_EVENT
static IdleStateEvent
WRITER_IDLE_STATE_EVENT
-
Constructor Summary
Constructors Modifier Constructor Description protected
IdleStateEvent(IdleState state, boolean first)
Constructor for sub-classes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isFirst()
Returnstrue
if this was the first event for theIdleState
IdleState
state()
Returns the idle state.String
toString()
-
-
-
Field Detail
-
FIRST_READER_IDLE_STATE_EVENT
public static final IdleStateEvent FIRST_READER_IDLE_STATE_EVENT
-
READER_IDLE_STATE_EVENT
public static final IdleStateEvent READER_IDLE_STATE_EVENT
-
FIRST_WRITER_IDLE_STATE_EVENT
public static final IdleStateEvent FIRST_WRITER_IDLE_STATE_EVENT
-
WRITER_IDLE_STATE_EVENT
public static final IdleStateEvent WRITER_IDLE_STATE_EVENT
-
FIRST_ALL_IDLE_STATE_EVENT
public static final IdleStateEvent FIRST_ALL_IDLE_STATE_EVENT
-
ALL_IDLE_STATE_EVENT
public static final IdleStateEvent ALL_IDLE_STATE_EVENT
-
-
Constructor Detail
-
IdleStateEvent
protected IdleStateEvent(IdleState state, boolean first)
Constructor for sub-classes.- Parameters:
state
- theIdleStateEvent
which triggered the event.first
-true
if its the first idle event for theIdleStateEvent
.
-
-