Class AbstractChannelPoolHandler
java.lang.Object
io.netty.channel.pool.AbstractChannelPoolHandler
- All Implemented Interfaces:
ChannelPoolHandler
A skeletal
ChannelPoolHandler implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelAcquired(Channel ch) NOOP implementation, sub-classes may override this.voidchannelReleased(Channel ch) NOOP implementation, sub-classes may override this.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChannelPoolHandler
channelCreated
-
Constructor Details
-
AbstractChannelPoolHandler
public AbstractChannelPoolHandler()
-
-
Method Details
-
channelAcquired
NOOP implementation, sub-classes may override this. Called once aChannelwas acquired by callingChannelPool.acquire()orChannelPool.acquire(Promise). This method will be called by theEventLoopof theChannel.- Specified by:
channelAcquiredin interfaceChannelPoolHandler- Throws:
Exception
-
channelReleased
NOOP implementation, sub-classes may override this. Called once aChannelwas released by callingChannelPool.release(Channel)orChannelPool.release(Channel, Promise). This method will be called by theEventLoopof theChannel.- Specified by:
channelReleasedin interfaceChannelPoolHandler- Throws:
Exception
-