Class OpenDJConnection.AggregateUnsolicitedNotificationListener

  • All Implemented Interfaces:
    EventListener, org.forgerock.opendj.ldap.ConnectionEventListener
    Enclosing class:
    OpenDJConnection

    protected class OpenDJConnection.AggregateUnsolicitedNotificationListener
    extends Object
    implements org.forgerock.opendj.ldap.ConnectionEventListener
    Allows the use of multiple unsolicited notification listeners per connection.
    • Constructor Detail

      • AggregateUnsolicitedNotificationListener

        protected AggregateUnsolicitedNotificationListener()
    • Method Detail

      • addUnsolicitedNotificationListener

        public void addUnsolicitedNotificationListener​(UnsolicitedNotificationListener listener)
        Adds an unsolicited notification listener to this listener.
        Parameters:
        listener - to receive unsolicited notifications
      • removeUnsolicitedNotificationListener

        public void removeUnsolicitedNotificationListener​(UnsolicitedNotificationListener listener)
        Removes an unsolicited notification listener from this listener.
        Parameters:
        listener - to stop receiving unsolicited notifications
      • handleConnectionClosed

        public void handleConnectionClosed()
        Specified by:
        handleConnectionClosed in interface org.forgerock.opendj.ldap.ConnectionEventListener
      • handleConnectionError

        public void handleConnectionError​(boolean b,
                                          org.forgerock.opendj.ldap.ErrorResultException e)
        Specified by:
        handleConnectionError in interface org.forgerock.opendj.ldap.ConnectionEventListener
      • handleUnsolicitedNotification

        public void handleUnsolicitedNotification​(org.forgerock.opendj.ldap.responses.ExtendedResult extendedResult)
        Specified by:
        handleUnsolicitedNotification in interface org.forgerock.opendj.ldap.ConnectionEventListener