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 protected
Builder()
Creates a new builder.protected
Builder(AgePruneStrategy strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgePruneStrategy.Builder
age(Duration time)
Sets the prune age time.AgePruneStrategy.Builder
priority(long l)
Sets the prune priority.protected AgePruneStrategy.Builder
self()
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.AbstractBuilder
Returns this builder.- Specified by:
self
in 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
-
-