Top Description Inners Fields Constructors Methods
io.netty.handler.timeout

public Class IdleStateEvent

extends Object
Class Inheritance
Known Direct Subclasses
io.netty.handler.timeout.IdleStateEvent.DefaultIdleStateEvent
Imports
io.netty.channel.Channel, io.netty.util.internal.ObjectUtil, .StringUtil

A user event triggered by IdleStateHandler when a Channel is idle.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
public static final IdleStateEvent
private final boolean
public static final IdleStateEvent
public static final IdleStateEvent
public static final IdleStateEvent
public static final IdleStateEvent
private final IdleState
public static final IdleStateEvent

Constructor Summary

AccessConstructor and Description
protected
IdleStateEvent(IdleState
the IdleStateEvent which triggered the event.
state
,
boolean
true if its the first idle event for the IdleStateEvent.
first
)

Constructor for sub-classes.

Method Summary

Modifier and TypeMethod and Description
public boolean
isFirst()

Returns true if this was the first event for the IdleState

public IdleState
state()

Returns the idle state.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ALL_IDLE_STATE_EVENTback to summary
public static final IdleStateEvent ALL_IDLE_STATE_EVENT
firstback to summary
private final boolean first
FIRST_ALL_IDLE_STATE_EVENTback to summary
public static final IdleStateEvent FIRST_ALL_IDLE_STATE_EVENT
FIRST_READER_IDLE_STATE_EVENTback to summary
public static final IdleStateEvent FIRST_READER_IDLE_STATE_EVENT
FIRST_WRITER_IDLE_STATE_EVENTback to summary
public static final IdleStateEvent FIRST_WRITER_IDLE_STATE_EVENT
READER_IDLE_STATE_EVENTback to summary
public static final IdleStateEvent READER_IDLE_STATE_EVENT
stateback to summary
private final IdleState state
WRITER_IDLE_STATE_EVENTback to summary
public static final IdleStateEvent WRITER_IDLE_STATE_EVENT

Constructor Detail

IdleStateEventback to summary
protected IdleStateEvent(IdleState state, boolean first)

Constructor for sub-classes.

Parameters
state:IdleState

the IdleStateEvent which triggered the event.

first:boolean

true if its the first idle event for the IdleStateEvent.

Method Detail

isFirstback to summary
public boolean isFirst()

Returns true if this was the first event for the IdleState

stateback to summary
public IdleState state()

Returns the idle state.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
io.netty.handler.timeout back to summary

private final Class IdleStateEvent.DefaultIdleStateEvent

extends IdleStateEvent
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final String
Inherited from io.netty.handler.timeout.IdleStateEvent:
ALL_IDLE_STATE_EVENTFIRST_ALL_IDLE_STATE_EVENTFIRST_READER_IDLE_STATE_EVENTFIRST_WRITER_IDLE_STATE_EVENTREADER_IDLE_STATE_EVENTWRITER_IDLE_STATE_EVENT

Constructor Summary

AccessConstructor and Description
pack-priv
DefaultIdleStateEvent(IdleState state, boolean first)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides io.netty.handler.timeout.IdleStateEvent.toString.

Returns a string representation of the object.
Inherited from io.netty.handler.timeout.IdleStateEvent:
isFirststate

Field Detail

representationback to summary
private final String representation

Constructor Detail

DefaultIdleStateEventback to summary
pack-priv DefaultIdleStateEvent(IdleState state, boolean first)

Method Detail

toStringback to summary
public String toString()

Overrides io.netty.handler.timeout.IdleStateEvent.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override