use of co.cask.cdap.gateway.router.handlers.IdleEventProcessor in project cdap by caskdata.
the class ClientChannelPipelineFactory method getPipeline.
@Override
public ChannelPipeline getPipeline() throws Exception {
ChannelPipeline pipeline = Channels.pipeline();
pipeline.addLast("tracker", connectionTracker);
pipeline.addLast("request-encoder", new HttpRequestEncoder());
// outbound handler gets dynamically added here (after 'request-encoder')
pipeline.addLast("response-decoder", new HttpResponseDecoder());
// disable the read-specific and write-specific timeouts; we only utilize IdleState#ALL_IDLE
pipeline.addLast("idle-event-generator", new IdleStateHandler(timer, 0, 0, connectionTimeout));
pipeline.addLast("idle-event-processor", new IdleEventProcessor());
return pipeline;
}
Aggregations