Interface ChannelPool

    • Method Detail

      • acquire

        io.netty.util.concurrent.Future<Channel> acquire()
        Acquire a Channel from this ChannelPool. The returned Future is notified once the acquire is successful and failed otherwise. Its important that an acquired is always released to the pool again, even if the Channel is explicitly closed..
      • acquire

        io.netty.util.concurrent.Future<Channel> acquire​(io.netty.util.concurrent.Promise<Channel> promise)
        Acquire a Channel from this ChannelPool. The given Promise is notified once the acquire is successful and failed otherwise. Its important that an acquired is always released to the pool again, even if the Channel is explicitly closed..
      • release

        io.netty.util.concurrent.Future<Void> release​(Channel channel)
        Release a Channel back to this ChannelPool. The returned Future is notified once the release is successful and failed otherwise. When failed the Channel will automatically closed.
      • release

        io.netty.util.concurrent.Future<Void> release​(Channel channel,
                                                      io.netty.util.concurrent.Promise<Void> promise)
        Release a Channel back to this ChannelPool. The given Promise is notified once the release is successful and failed otherwise. When failed the Channel will automatically closed.