Package io.netty.channel.pool
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 TypeMethodDescriptionvoid
NOOP implementation, sub-classes may override this.void
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
-
Constructor Details
-
AbstractChannelPoolHandler
public AbstractChannelPoolHandler()
-
-
Method Details
-
channelAcquired
NOOP implementation, sub-classes may override this. Called once aChannel
was acquired by callingChannelPool.acquire()
orChannelPool.acquire(Promise)
. This method will be called by theEventLoop
of theChannel
.- Specified by:
channelAcquired
in interfaceChannelPoolHandler
- Throws:
Exception
-
channelReleased
NOOP implementation, sub-classes may override this. Called once aChannel
was released by callingChannelPool.release(Channel)
orChannelPool.release(Channel, Promise)
. This method will be called by theEventLoop
of theChannel
.- Specified by:
channelReleased
in interfaceChannelPoolHandler
- Throws:
Exception
-