Class ChannelFutures


  • public class ChannelFutures
    extends java.lang.Object
    Static utility methods for operating on ChannelFutures.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.concurrent.CompletableFuture<io.netty.channel.Channel> toCompletableFuture​(io.netty.channel.ChannelFuture channelFuture)
      Convert a ChannelFuture into a CompletableFuture.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toCompletableFuture

        public static java.util.concurrent.CompletableFuture<io.netty.channel.Channel> toCompletableFuture​(io.netty.channel.ChannelFuture channelFuture)
        Convert a ChannelFuture into a CompletableFuture.
        Parameters:
        channelFuture - the ChannelFuture
        Returns:
        a CompletableFuture that completes successfully when the channelFuture completes successfully, and completes exceptionally if the channelFuture completes with a Throwable