Enrich ConnectionPoolListener
interface to listen to more connection events
#4649
Labels
ConnectionPoolListener
interface to listen to more connection events
#4649
Original question/context:
https://line-armeria.slack.com/archives/C1NGPBUH2/p1675388028842779
The
ConnectionPoolListener
(set here) provides APIs to listen 2 types of connection events:Consider adding APIs to the
ConnectionPoolListener
interface to listen to more types of connection events such as:pending
. // still trying to establish a connection.active
. // sending a request, waiting for response, or receiving a response.idle
. // after the last response has been received and before the next request is sent.IMO
Connection failed
listener API is useful and feasible to add. Other connection state transition APIs ( above 2, 3, and 4) may not be very useful or may be very complex/challenging to implement. Let me know what you think @trustin . Thanks!The text was updated successfully, but these errors were encountered: