public abstract class PooledChannel extends Object implements io.netty.channel.Channel
Abstract PooledChannel class.
Constructor and Description |
---|
PooledChannel() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(BiConsumer<PooledChannel,Throwable> listener)
Add release listener
|
abstract NettyChannelPool |
getChannelPool()
getChannelPool.
|
abstract CompletableFuture<Void> |
release()
release.
|
void |
removeListener(BiConsumer<PooledChannel,Throwable> listener)
Remove release listener
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, config, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, localAddress, metadata, parent, pipeline, read, remoteAddress, unsafe
bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlush
compareTo
public void addListener(BiConsumer<PooledChannel,Throwable> listener)
listener
- The callback to notify when this channel has been releasedpublic void removeListener(BiConsumer<PooledChannel,Throwable> listener)
listener
- The callback to removepublic abstract NettyChannelPool getChannelPool()
getChannelPool.
NettyChannelPool
objectpublic abstract CompletableFuture<Void> release()
release.
CompletableFuture
objectCopyright © 2016–2024. All rights reserved.