Package org.ldaptive.pool
Class AbstractPruneStrategy.AbstractBuilder<B,T extends AbstractPruneStrategy>
- java.lang.Object
-
- org.ldaptive.pool.AbstractPruneStrategy.AbstractBuilder<B,T>
-
- Type Parameters:
B
- type of builderT
- 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.
-
-
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 prune strategy.B
freeze()
Makes this instance immutable.B
period(Duration period)
Sets the prune period.protected abstract B
self()
Returns this builder.
-
-
-
Field Detail
-
object
protected final T extends AbstractPruneStrategy object
Prune strategy to build.
-
-
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
-
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
-
-