Package org.ldaptive.pool
Class AgePruneStrategy.Builder
- java.lang.Object
-
- org.ldaptive.pool.AbstractPruneStrategy.AbstractBuilder<AgePruneStrategy.Builder,AgePruneStrategy>
-
- org.ldaptive.pool.AgePruneStrategy.Builder
-
- Direct Known Subclasses:
IdlePruneStrategy.Builder
- Enclosing class:
- AgePruneStrategy
public static class AgePruneStrategy.Builder extends AbstractPruneStrategy.AbstractBuilder<AgePruneStrategy.Builder,AgePruneStrategy>
Age prune strategy builder.
-
-
Field Summary
-
Fields inherited from class org.ldaptive.pool.AbstractPruneStrategy.AbstractBuilder
object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()Creates a new builder.protectedBuilder(AgePruneStrategy strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgePruneStrategy.Builderage(Duration time)Sets the prune age time.AgePruneStrategy.Builderpriority(long l)Sets the prune priority.AgePruneStrategy.BuilderpriorityFactor(int i)Sets the prune priority factor.protected AgePruneStrategy.Builderself()Returns this builder.-
Methods inherited from class org.ldaptive.pool.AbstractPruneStrategy.AbstractBuilder
build, freeze, period
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
Creates a new builder.
-
Builder
protected Builder(AgePruneStrategy strategy)
-
-
Method Detail
-
self
protected AgePruneStrategy.Builder self()
Description copied from class:AbstractPruneStrategy.AbstractBuilderReturns this builder.- Specified by:
selfin classAbstractPruneStrategy.AbstractBuilder<AgePruneStrategy.Builder,AgePruneStrategy>- Returns:
- builder
-
age
public AgePruneStrategy.Builder age(Duration time)
Sets the prune age time.- Parameters:
time- to set- Returns:
- this builder
-
priority
public AgePruneStrategy.Builder priority(long l)
Sets the prune priority.- Parameters:
l- prune priority- Returns:
- this builder
-
priorityFactor
public AgePruneStrategy.Builder priorityFactor(int i)
Sets the prune priority factor.- Parameters:
i- prune priority factor- Returns:
- this builder
-
-