Package com.linecorp.armeria.client
Class ConnectionPoolListenerWrapper
java.lang.Object
com.linecorp.armeria.common.util.AbstractUnwrappable<ConnectionPoolListener>
com.linecorp.armeria.client.ConnectionPoolListenerWrapper
- All Implemented Interfaces:
ConnectionPoolListener
,Unwrappable
public class ConnectionPoolListenerWrapper extends AbstractUnwrappable<ConnectionPoolListener> implements ConnectionPoolListener
A
ConnectionPoolListener
that wraps an existing ConnectionPoolListener
.-
Constructor Summary
Constructors Modifier Constructor Description protected
ConnectionPoolListenerWrapper(ConnectionPoolListener delegate)
Creates a new instance with the specifieddelegate
. -
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.Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable
as, toString, unwrap
-
Constructor Details
-
ConnectionPoolListenerWrapper
Creates a new instance with the specifieddelegate
.
-
-
Method Details
-
connectionOpen
public void connectionOpen(SessionProtocol protocol, InetSocketAddress remoteAddr, InetSocketAddress localAddr, AttributeMap attrs) throws ExceptionDescription copied from interface:ConnectionPoolListener
Invoked when a new connection is open and ready to send a request.- Specified by:
connectionOpen
in interfaceConnectionPoolListener
- Throws:
Exception
-
connectionClosed
public void connectionClosed(SessionProtocol protocol, InetSocketAddress remoteAddr, InetSocketAddress localAddr, AttributeMap attrs) throws ExceptionDescription copied from interface:ConnectionPoolListener
Invoked when a connection in the connection pool has been closed.- Specified by:
connectionClosed
in interfaceConnectionPoolListener
- Throws:
Exception
-