Search in sources :

Example 1 with ChannelEvent

use of org.jboss.netty.channel.ChannelEvent in project graphdb by neo4j-attic.

the class Client method getPipeline.

public ChannelPipeline getPipeline() throws Exception {
    ChannelPipeline pipeline = Channels.pipeline();
    addLengthFieldPipes(pipeline);
    BlockingReadHandler<ChannelBuffer> reader = new BlockingReadHandler<ChannelBuffer>(new ArrayBlockingQueue<ChannelEvent>(3, false));
    pipeline.addLast("blockingHandler", reader);
    return pipeline;
}
Also used : BlockingReadHandler(org.jboss.netty.handler.queue.BlockingReadHandler) ChannelPipeline(org.jboss.netty.channel.ChannelPipeline) ChannelEvent(org.jboss.netty.channel.ChannelEvent) ChannelBuffer(org.jboss.netty.buffer.ChannelBuffer)

Aggregations

ChannelBuffer (org.jboss.netty.buffer.ChannelBuffer)1 ChannelEvent (org.jboss.netty.channel.ChannelEvent)1 ChannelPipeline (org.jboss.netty.channel.ChannelPipeline)1 BlockingReadHandler (org.jboss.netty.handler.queue.BlockingReadHandler)1