[trustin][1] pushed to next-api at [netty/netty][2] May 09, 2012
* [trustin][1] committed [129a2af][3]
> Initial working version of the echo server example
- Optimized AbstractChannelBuffer.discardReadBytes()
- Split ChannelHandlerInvoker into ChannelInboundInvoker and
ChannelOutboundInvoker
- Channel implements ChannelOutboundInvoker
- ChannelOutboundInvoker.nextOut() is now out()
- ChannelOutboundHandlerContext.out() is now prevOut()
- Added the outbound operations without future
parameter to ChannelOutboundInvoker for user convenience
- All async operations which requires a ChannelFuture as a parameter
now returns ChannelFuture for user convenience
- Added ChannelFutureFactory.newVoidFuture() to allow a user specify
a dummy future that is of no use
- I'm unsure if it is actually a good idea to introduce it. It might
go away later.
- Made the contract of AbstractChannel.doXXX() much simpler and moved
all common code up to AbstractChannel.DefaultUnsafe
- Added Channel.isOpen()
- Fixed a bug where MultithreadEventLoop always shut down its child
event loops on construction
- Maybe more changes I don't remember :-)
[normanmaurer][1] commented on [netty/netty][2] May 09, 2012
Comment on [example/src/main/java/io/netty/example/echo/EchoServer.java][3] [L48][3] in [129a2af86a][3]:
> I must say I don't like this to much and all the reflection magic going in in the class ;) Why not inject a Factory which can create SelectorEventLoop instances and use this ?
[trustin][1] pushed to next-api at [netty/netty][2] May 09, 2012
* [trustin][1] committed [b4764f6][3]
> Fix infinity loop and timing issues
- Made sure unnecessary interestOps are not OR'd
- Fixed a bug where DefaultChannelFuture.rethrowIfFailed() returns
silently if the future is not done yet - there's no ways to tell
the differences between failure and incompleteness.