Package org.ldaptive

Interface ConnectionValidator

    • Method Detail

      • applyAsync

        void applyAsync​(Connection conn,
                        Consumer<Boolean> function)
        Provides an asynchronous implementation of Function.apply(Object). The supplied consumer will be invoked with the validation result. getValidateTimeout() must be enforced by the caller.
        Parameters:
        conn - to validate
        function - to consume the validation result
      • getValidatePeriod

        Duration getValidatePeriod()
        Returns the interval at which the validation task will be executed.
        Returns:
        validation period
      • getValidateTimeout

        Duration getValidateTimeout()
        Returns the duration at which a validate operation should be abandoned.
        Returns:
        validation timeout