Package io.netty.channel.pool
Class AbstractChannelPoolHandler
- java.lang.Object
-
- io.netty.channel.pool.AbstractChannelPoolHandler
-
- All Implemented Interfaces:
ChannelPoolHandler
public abstract class AbstractChannelPoolHandler extends java.lang.Object implements ChannelPoolHandler
A skeletalChannelPoolHandlerimplementation.
-
-
Constructor Summary
Constructors Constructor Description AbstractChannelPoolHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelAcquired(Channel ch)NOOP implementation, sub-classes may override this.voidchannelReleased(Channel ch)NOOP implementation, sub-classes may override this.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.pool.ChannelPoolHandler
channelCreated
-
-
-
-
Method Detail
-
channelAcquired
public void channelAcquired(Channel ch) throws java.lang.Exception
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:
java.lang.Exception
-
channelReleased
public void channelReleased(Channel ch) throws java.lang.Exception
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:
java.lang.Exception
-
-