Created
July 6, 2012 03:54
-
-
Save trustin/3057966 to your computer and use it in GitHub Desktop.
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
Channel ch = ...; | |
ChannelPipeline p = ch.pipeline(); | |
EventExecutor e1 = new DefaultEventExecutor(16); | |
EventExecutor e2 = new DefaultEventExecutor(8); | |
p.addLast(new MyProtocolCodec()); | |
p.addLast(e1, new MyDatabaseAccessingHandler()); | |
p.addLast(e2, new MyHardDiskAccessingHandler()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment