Class AbstractPruneStrategy.AbstractBuilder<B,T extends AbstractPruneStrategy>

java.lang.Object
org.ldaptive.pool.AbstractPruneStrategy.AbstractBuilder<B,T>
Type Parameters:
B - type of builder
T - type of validator
Direct Known Subclasses:
AgePruneStrategy.Builder
Enclosing class:
AbstractPruneStrategy

protected abstract static class AbstractPruneStrategy.AbstractBuilder<B,T extends AbstractPruneStrategy> extends Object
Base class for prune strategy builders.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final T
    Prune strategy to build.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates a new abstract builder.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the prune strategy.
    Makes this instance immutable.
    period(Duration period)
    Sets the prune period.
    protected abstract B
    Returns this builder.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • AbstractBuilder

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

    • self

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

      public B freeze()
      Makes this instance immutable.
      Returns:
      this builder
    • period

      public B period(Duration period)
      Sets the prune period.
      Parameters:
      period - to set
      Returns:
      this builder
    • build

      public T build()
      Returns the prune strategy.
      Returns:
      prune strategy