类 ChannelFutures
java.lang.Object
org.apache.pulsar.common.util.netty.ChannelFutures
Static utility methods for operating on
ChannelFutures.-
方法概要
修饰符和类型方法说明static CompletableFuture<io.netty.channel.Channel>toCompletableFuture(io.netty.channel.ChannelFuture channelFuture) Convert aChannelFutureinto aCompletableFuture.
-
方法详细资料
-
toCompletableFuture
public static CompletableFuture<io.netty.channel.Channel> toCompletableFuture(io.netty.channel.ChannelFuture channelFuture) Convert aChannelFutureinto aCompletableFuture.- 参数:
channelFuture- theChannelFuture- 返回:
- a
CompletableFuturethat completes successfully when the channelFuture completes successfully, and completes exceptionally if the channelFuture completes with aThrowable
-