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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.client.ConnectionPoolListener
unwrap
Methods inherited from interface com.linecorp.armeria.common.util.Unwrappable
as
-
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
-