public interface ConnectionPoolListener
| 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.
|
static ConnectionPoolListener |
noop()
Returns an instance that does nothing.
|
static ConnectionPoolListener noop()
void connectionOpen(SessionProtocol protocol, InetSocketAddress remoteAddr, InetSocketAddress localAddr, io.netty.util.AttributeMap attrs) throws Exception
Exceptionvoid connectionClosed(SessionProtocol protocol, InetSocketAddress remoteAddr, InetSocketAddress localAddr, io.netty.util.AttributeMap attrs) throws Exception
ExceptionCopyright © 2020 LeanCloud. All rights reserved.