Search in sources :

Example 6 with ReadTimeoutHandler

use of org.jboss.netty.handler.timeout.ReadTimeoutHandler in project socket.io-netty by ibdknox.

the class FlashPolicyServerPipelineFactory method getPipeline.

public ChannelPipeline getPipeline() throws Exception {
    // Create a default pipeline implementation.
    ChannelPipeline pipeline = pipeline();
    pipeline.addLast("timeout", new ReadTimeoutHandler(timer, 30));
    pipeline.addLast("decoder", new FlashPolicyServerDecoder());
    pipeline.addLast("handler", new FlashPolicyServerHandler());
    return pipeline;
}
Also used : ReadTimeoutHandler(org.jboss.netty.handler.timeout.ReadTimeoutHandler) ChannelPipeline(org.jboss.netty.channel.ChannelPipeline)

Aggregations

ReadTimeoutHandler (org.jboss.netty.handler.timeout.ReadTimeoutHandler)6 ChannelHandler (org.jboss.netty.channel.ChannelHandler)4 ChannelPipeline (org.jboss.netty.channel.ChannelPipeline)3 Channel (org.jboss.netty.channel.Channel)2 ChannelFuture (org.jboss.netty.channel.ChannelFuture)2 ChannelFutureListener (org.jboss.netty.channel.ChannelFutureListener)2 SslHandler (org.jboss.netty.handler.ssl.SslHandler)2 ConnectException (java.net.ConnectException)1 InetSocketAddress (java.net.InetSocketAddress)1 URL (java.net.URL)1 Collection (java.util.Collection)1 Map (java.util.Map)1 Callable (java.util.concurrent.Callable)1 RejectedExecutionException (java.util.concurrent.RejectedExecutionException)1 AsyncCallback (org.apache.camel.AsyncCallback)1 CamelException (org.apache.camel.CamelException)1 CamelExchangeException (org.apache.camel.CamelExchangeException)1 ChannelHandlerFactory (org.apache.camel.component.netty.ChannelHandlerFactory)1 ClientChannelHandler (org.apache.camel.component.netty.handlers.ClientChannelHandler)1 HttpClientChannelHandler (org.apache.camel.component.netty.http.handlers.HttpClientChannelHandler)1