public class IdleTimeoutInitializer extends java.lang.Object implements ChannelInitializer
| Constructor and Description |
|---|
IdleTimeoutInitializer(java.time.Duration idleTimeout)
New instance.
|
IdleTimeoutInitializer(long idleTimeoutMillis)
New instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(io.netty.channel.Channel channel)
Configures the passed
Channel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen, defaultInitializerpublic IdleTimeoutInitializer(java.time.Duration idleTimeout)
idleTimeout - timeout duration.public IdleTimeoutInitializer(long idleTimeoutMillis)
idleTimeoutMillis - timeout in milliseconds.public void init(io.netty.channel.Channel channel)
ChannelInitializerChannel.
Typically, an initializer should add handlers to the channel at the end. This makes it possible for the code using the initializer to create the order of the handlers in the pipeline.
init in interface ChannelInitializerchannel - Netty Channel.