Package org.ldaptive

Class AbstractConnectionValidator.AbstractBuilder<B,​T extends AbstractConnectionValidator>

    • Constructor Detail

      • AbstractBuilder

        protected AbstractBuilder​(T t)
        Creates a new abstract builder.
        Parameters:
        t - validator to build
    • Method Detail

      • self

        protected abstract B self()
        Returns this builder.
        Returns:
        builder
      • period

        public B period​(Duration period)
        Sets the validation period.
        Parameters:
        period - to set
        Returns:
        this builder
      • timeout

        public B timeout​(Duration timeout)
        Sets the validation timeout.
        Parameters:
        timeout - to set
        Returns:
        this builder
      • timeoutIsFailure

        public B timeoutIsFailure​(boolean failure)
        Sets whether timeout is a validation failure.
        Parameters:
        failure - whether timeout is a validation failure
        Returns:
        this builder
      • build

        public T build()
        Returns the connection validator.
        Returns:
        connection validator