Class ConnectionRemovedEvent


  • @Deprecated(since="2021-05-27")
    public final class ConnectionRemovedEvent
    extends java.lang.Object
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    An event for removing a connection from the pool.
    Since:
    3.5
    • Constructor Detail

      • ConnectionRemovedEvent

        public ConnectionRemovedEvent​(ConnectionId connectionId,
                                      ConnectionRemovedEvent.Reason reason)
        Deprecated.
        Constructs an instance.
        Parameters:
        connectionId - the connection id
        reason - the reason the connection was closed
        Since:
        3.11
    • Method Detail

      • getConnectionId

        public ConnectionId getConnectionId()
        Deprecated.
        Gets the connection id
        Returns:
        the connection id
      • getReason

        public ConnectionRemovedEvent.Reason getReason()
        Deprecated.
        Get the reason the connection was removed.
        Returns:
        the reason
        Since:
        3.11
      • toString

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