public class ConnectionPoolListenerAdapter extends Object implements ConnectionPoolListener
ConnectionPoolListener implementation in order for a user to implement only the methods
what he or she really needs.| Modifier | Constructor and Description |
|---|---|
protected |
ConnectionPoolListenerAdapter()
Creates a new instance.
|
| 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, waitnoopprotected ConnectionPoolListenerAdapter()
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.