Package org.ldaptive

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

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T object
      Validator to build.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractBuilder​(T t)
      Creates a new abstract builder.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      T build()
      Returns the message.
      B period​(java.time.Duration period)
      Sets the validation period.
      protected abstract B self()
      Returns this builder.
      B timeout​(java.time.Duration timeout)
      Sets the validation timeout.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.time.Duration period)
        Sets the validation period.
        Parameters:
        period - to set
        Returns:
        this builder
      • timeout

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

        public T build()
        Returns the message.
        Returns:
        message