Interface DataProviderEventListener


  • public interface DataProviderEventListener
    An object that registers to be notified of events generated by a DataProviderConnection object. Data provider events may be triggered as a result of:
    • The data provider connection being closed.
    • An operational error. For example, a proxy data provider might lose connectivity with the remote server.
    • A configuration change. For example, a data provider may be disabled, or have a new base DN added.
    • An administrative action. For example, a data provider may be temporarily disabled during an import or restore from backup.
    In the case of configuration changes, the data provider will only notify its listeners once the configuration change has been applied. If a listener wishes to validate configuration changes before they are applied to a data provider then the listener should use the registration methods provided by DataProviderCfg.
    • Method Detail

      • handleDataProviderEvent

        void handleDataProviderEvent​(DataProviderEvent event)
        The data provider has changed state due to an operational error, configuration change, or an administrative action.

        Implementations should examine the provided DataProviderEvent in order to determine how the data provider has changed.

        Parameters:
        event - The data provider event.