e1 = new DefaultEventExecutor(16); EventExecutor e2 = new DefaultEventExecutor(8); p.addLast(new MyProtocolCodec()); p.addLast(e1, new MyDatabaseAccessingHandler()); p.addLast(e2, new MyHardDiskAccessingHandler());
app ::Rack::Builder.new do run Proc.new { [200, { "Content-Type" => "text/ html" }, "Hello World!"] } end end end Netty::HttpServer.new.add(HelloWorldHandler).listen(8080)