public class ConnectionPoolListenerWrapper extends Object implements ConnectionPoolListener
ConnectionPoolListener that wraps an existing ConnectionPoolListener.| Modifier | Constructor and Description |
|---|---|
protected |
ConnectionPoolListenerWrapper(ConnectionPoolListener delegate)
Creates a new instance with the specified
delegate. |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionClosed(SessionProtocol protocol,
InetSocketAddress remoteAddr,
InetSocketAddress localAddr,
io.netty.util.AttributeMap attrs)
Invoked when a connection in the connection pool has been closed.
|
void |
connectionOpen(SessionProtocol protocol,
InetSocketAddress remoteAddr,
InetSocketAddress localAddr,
io.netty.util.AttributeMap attrs)
Invoked when a new connection is open and ready to send a request.
|
protected <T extends ConnectionPoolListener> |
delegate()
Returns the
ConnectionPoolListener this handler decorates. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnoopprotected ConnectionPoolListenerWrapper(ConnectionPoolListener delegate)
delegate.protected final <T extends ConnectionPoolListener> T delegate()
ConnectionPoolListener this handler decorates.public void connectionOpen(SessionProtocol protocol, InetSocketAddress remoteAddr, InetSocketAddress localAddr, io.netty.util.AttributeMap attrs) throws Exception
ConnectionPoolListenerconnectionOpen in interface ConnectionPoolListenerExceptionpublic void connectionClosed(SessionProtocol protocol, InetSocketAddress remoteAddr, InetSocketAddress localAddr, io.netty.util.AttributeMap attrs) throws Exception
ConnectionPoolListenerconnectionClosed in interface ConnectionPoolListenerExceptionCopyright © 2020 LeanCloud. All rights reserved.