Created
June 12, 2012 13:54
-
-
Save nickman/2917650 to your computer and use it in GitHub Desktop.
MyPipelineFactory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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