Skip to content

Instantly share code, notes, and snippets.

@nickman
Created June 12, 2012 13:54
Show Gist options
  • Save nickman/2917650 to your computer and use it in GitHub Desktop.
Save nickman/2917650 to your computer and use it in GitHub Desktop.
MyPipelineFactory
public class MyPipelineFactory implements ChannelPipelineFactory {
public ChannelPipeline getPipeline() throws Exception {
// Create and configure a new pipeline for a new channel.
ChannelPipeline p = Channels.pipeline();
p.addLast("encoder", new EncodingHandler());
p.addLast("decoder", new DecodingHandler());
p.addLast("logic", new LogicHandler());
return p;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment