Search in sources :

Example 1 with CloseOnIdleStateHandler

use of com.netflix.netty.common.CloseOnIdleStateHandler in project zuul by Netflix.

the class BaseZuulChannelInitializer method addTimeoutHandlers.

protected void addTimeoutHandlers(ChannelPipeline pipeline) {
    pipeline.addLast(new IdleStateHandler(0, 0, idleTimeout, TimeUnit.MILLISECONDS));
    pipeline.addLast(new CloseOnIdleStateHandler(registry, metricId));
}
Also used : CloseOnIdleStateHandler(com.netflix.netty.common.CloseOnIdleStateHandler) IdleStateHandler(io.netty.handler.timeout.IdleStateHandler) CloseOnIdleStateHandler(com.netflix.netty.common.CloseOnIdleStateHandler)

Aggregations

CloseOnIdleStateHandler (com.netflix.netty.common.CloseOnIdleStateHandler)1 IdleStateHandler (io.netty.handler.timeout.IdleStateHandler)1