Search code examples
nettynetty4

What is the replacement of DefualtChannelFuture in Netty 4


In Netty 3 there is the DefualtChannelFuture class.

It is used to create an instance of ChannelFuture. What would the replacement be in Netty 4?


Solution

  • Call Channel.newPromise() or ChannelHandlerContext.newPromise()if you need to create an own instance of a ChannelPromise. A ChannelPromise is a sub-type of ChannelFuture.