Class IdleTimeoutInitializer
java.lang.Object
io.servicetalk.transport.netty.internal.IdleTimeoutInitializer
- All Implemented Interfaces:
ChannelInitializer
Initializes the channel with idle timeout handling.
-
Constructor Summary
ConstructorsConstructorDescriptionIdleTimeoutInitializer(long idleTimeoutMillis) New instance.IdleTimeoutInitializer(Duration idleTimeout) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(io.netty.channel.Channel channel) Configures the passedChannel.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.servicetalk.transport.netty.internal.ChannelInitializer
andThen
-
Constructor Details
-
IdleTimeoutInitializer
Deprecated.New instance.- Parameters:
idleTimeout- timeout duration.
-
IdleTimeoutInitializer
public IdleTimeoutInitializer(long idleTimeoutMillis) New instance.- Parameters:
idleTimeoutMillis- timeout in milliseconds.
-
-
Method Details
-
init
public void init(io.netty.channel.Channel channel) Description copied from interface:ChannelInitializerConfigures the passedChannel.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.
- Specified by:
initin interfaceChannelInitializer- Parameters:
channel- NettyChannel.
-
IdleTimeoutInitializer(long)