public interface ChannelPoolHandler
ChannelPool完成的各种操作。
| Modifier and Type | Method and Description |
|---|---|
void |
channelAcquired(Channel ch)
|
void |
channelCreated(Channel ch)
在 ChannelPool中创建一个新的Channel 。
|
void |
channelReleased(Channel ch)
|
void channelReleased(Channel ch) throws java.lang.Exception
Channel通过调用释放ChannelPool.release(Channel)或ChannelPool.release(Channel, Promise) 。
该方法将由Channel的EventLoop调用 。
java.lang.Exception
void channelAcquired(Channel ch) throws java.lang.Exception
Channel通过调用收购ChannelPool.acquire()或ChannelPool.acquire(Promise) 。
该方法将由Channel的EventLoop调用 。
java.lang.Exception
void channelCreated(Channel ch) throws java.lang.Exception
ChannelPool中创建一个新的Channel 。
该方法将由Channel的EventLoop调用 。
java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.