Skip to content

Instantly share code, notes, and snippets.

@trustin
Created July 6, 2012 03:54
Show Gist options
  • Save trustin/3057966 to your computer and use it in GitHub Desktop.
Save trustin/3057966 to your computer and use it in GitHub Desktop.
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