Package com.linecorp.armeria.client
Interface ConnectionPoolListener
- All Known Implementing Classes:
ConnectionPoolListenerAdapter
,ConnectionPoolListenerWrapper
,ConnectionPoolLoggingListener
public interface ConnectionPoolListener
Listens to the client connection pool events.
-
Method Summary
Modifier and Type Method Description void
connectionClosed(SessionProtocol protocol, InetSocketAddress remoteAddr, InetSocketAddress localAddr, AttributeMap attrs)
Invoked when a connection in the connection pool has been closed.void
connectionOpen(SessionProtocol protocol, InetSocketAddress remoteAddr, InetSocketAddress localAddr, AttributeMap attrs)
Invoked when a new connection is open and ready to send a request.static ConnectionPoolListener
noop()
Returns an instance that does nothing.
-
Method Details
-
noop
Returns an instance that does nothing. -
connectionOpen
void connectionOpen(SessionProtocol protocol, InetSocketAddress remoteAddr, InetSocketAddress localAddr, AttributeMap attrs) throws ExceptionInvoked when a new connection is open and ready to send a request.- Throws:
Exception
-
connectionClosed
void connectionClosed(SessionProtocol protocol, InetSocketAddress remoteAddr, InetSocketAddress localAddr, AttributeMap attrs) throws ExceptionInvoked when a connection in the connection pool has been closed.- Throws:
Exception
-