public abstract class AbstractChannelPoolHandler extends java.lang.Object implements ChannelPoolHandler
ChannelPoolHandler的实现。
| Constructor and Description |
|---|
AbstractChannelPoolHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
channelAcquired(Channel ch)
NOOP的实现,子类可能会覆盖这个。
|
void |
channelReleased(Channel ch)
NOOP的实现,子类可能会覆盖这个。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchannelCreatedpublic void channelAcquired(Channel ch) throws java.lang.Exception
Channel通过调用收购ChannelPool.acquire()或ChannelPool.acquire(Promise) 。
该方法将由Channel的EventLoop调用 。
channelAcquired在界面
ChannelPoolHandler
java.lang.Exception
public void channelReleased(Channel ch) throws java.lang.Exception
ChannelPool.release(Channel)或ChannelPool.release(Channel, Promise)发布一次Channel调用。
该方法将由Channel的EventLoop调用 。
channelReleased在界面
ChannelPoolHandler
java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.