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
ConstructorsModifierConstructorDescriptionprotectedBuilder()Creates a new builder.protectedBuilder(AgePruneStrategy strategy) Creates a new builder with the supplied strategy. -
Method Summary
Modifier and TypeMethodDescriptionSets the prune age time.priority(int i) Sets the prune priority.priorityFactor(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 Details
-
Builder
protected Builder()Creates a new builder. -
Builder
Creates a new builder with the supplied strategy.- Parameters:
strategy- age prune strategy
-
-
Method Details
-
self
Description copied from class:AbstractPruneStrategy.AbstractBuilderReturns this builder.- Specified by:
selfin classAbstractPruneStrategy.AbstractBuilder<AgePruneStrategy.Builder,AgePruneStrategy> - Returns:
- builder
-
age
Sets the prune age time.- Parameters:
time- to set- Returns:
- this builder
-
priority
Sets the prune priority.- Parameters:
i- prune priority- Returns:
- this builder
-
priorityFactor
Sets the prune priority factor.- Parameters:
i- prune priority factor- Returns:
- this builder
-