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 skeletalChannelPoolHandler
implementation.
-
-
Constructor Summary
Constructors Constructor Description AbstractChannelPoolHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
channelAcquired(Channel ch)
NOOP implementation, sub-classes may override this.void
channelReleased(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 aChannel
was acquired by callingChannelPool.acquire()
orChannelPool.acquire(Promise)
. This method will be called by theEventLoop
of theChannel
.- Specified by:
channelAcquired
in interfaceChannelPoolHandler
- Throws:
java.lang.Exception
-
channelReleased
public void channelReleased(Channel ch) throws java.lang.Exception
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:
java.lang.Exception
-
-