Class ConnectionClosedEvent


  • public final class ConnectionClosedEvent
    extends java.lang.Object
    An event for when a connection pool closes a connection.
    Since:
    4.0
    • Constructor Detail

      • ConnectionClosedEvent

        public ConnectionClosedEvent​(ConnectionId connectionId,
                                     ConnectionClosedEvent.Reason reason)
        Construct an instance
        Parameters:
        connectionId - the connection id
        reason - the reason the connection was closed
    • Method Detail

      • getConnectionId

        public ConnectionId getConnectionId()
        Gets the connection id
        Returns:
        the connection id
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object