public final class ConnectionPoolLoggingListener extends Object implements ConnectionPoolListener
ConnectionPoolListener to log the connection pool events.| Constructor and Description |
|---|
ConnectionPoolLoggingListener()
Creates a new instance with a system ticker.
|
ConnectionPoolLoggingListener(Ticker ticker)
Creates a new instance with an alternative
Ticker. |
| 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnooppublic ConnectionPoolLoggingListener()
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.