【问题标题】:What is the replacement of DefualtChannelFuture in Netty 4Netty 4 中 DefualtChannelFuture 的替代品是什么
【发布时间】:2021-01-30 04:18:30
【问题描述】:

在 Netty 3 中有 DefualtChannelFuture 类。

用于创建ChannelFuture 的实例。 Netty 4 中的替代品是什么?

【问题讨论】:

    标签: netty netty4


    【解决方案1】:

    如果您需要创建自己的ChannelPromise 实例,请致电Channel.newPromise() 或ChannelHandlerContext.newPromise()。 ChannelPromise 是 ChannelFuture 的子类型。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-21
      • 2014-07-13
      • 1970-01-01
      • 2021-12-27
      • 2019-02-22
      • 2011-05-07
      • 2012-04-24
      • 2019-12-03
      相关资源
      最近更新 更多