Package org.ldaptive.provider.opendj
Class OpenDJConnection.AggregateUnsolicitedNotificationListener
- java.lang.Object
-
- org.ldaptive.provider.opendj.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.
-
-
Field Summary
Fields Modifier and Type Field Description private List<UnsolicitedNotificationListener>listenersListeners to receive unsolicited notifications.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAggregateUnsolicitedNotificationListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUnsolicitedNotificationListener(UnsolicitedNotificationListener listener)Adds an unsolicited notification listener to this listener.voidhandleConnectionClosed()voidhandleConnectionError(boolean b, org.forgerock.opendj.ldap.ErrorResultException e)voidhandleUnsolicitedNotification(org.forgerock.opendj.ldap.responses.ExtendedResult extendedResult)voidremoveUnsolicitedNotificationListener(UnsolicitedNotificationListener listener)Removes an unsolicited notification listener from this listener.
-
-
-
Field Detail
-
listeners
private final List<UnsolicitedNotificationListener> listeners
Listeners to receive unsolicited notifications.
-
-
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:
handleConnectionClosedin interfaceorg.forgerock.opendj.ldap.ConnectionEventListener
-
handleConnectionError
public void handleConnectionError(boolean b, org.forgerock.opendj.ldap.ErrorResultException e)- Specified by:
handleConnectionErrorin interfaceorg.forgerock.opendj.ldap.ConnectionEventListener
-
handleUnsolicitedNotification
public void handleUnsolicitedNotification(org.forgerock.opendj.ldap.responses.ExtendedResult extendedResult)
- Specified by:
handleUnsolicitedNotificationin interfaceorg.forgerock.opendj.ldap.ConnectionEventListener
-
-