Package com.linecorp.armeria.client
Class ConnectionPoolListenerAdapter
java.lang.Object
com.linecorp.armeria.client.ConnectionPoolListenerAdapter
- All Implemented Interfaces:
ConnectionPoolListener
,Unwrappable
public class ConnectionPoolListenerAdapter extends Object implements ConnectionPoolListener
A skeletal
ConnectionPoolListener
implementation in order for a user to implement only the methods
what he or she really needs.-
Constructor Summary
Constructors Modifier Constructor Description protected
ConnectionPoolListenerAdapter()
Creates a new instance. -
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
-
ConnectionPoolListenerAdapter
protected ConnectionPoolListenerAdapter()Creates a new instance.
-
-
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
-