Package org.ldaptive.pool
Class IdlePruneStrategy.Builder
- java.lang.Object
-
- org.ldaptive.pool.AbstractPruneStrategy.AbstractBuilder<AgePruneStrategy.Builder,AgePruneStrategy>
-
- org.ldaptive.pool.AgePruneStrategy.Builder
-
- org.ldaptive.pool.IdlePruneStrategy.Builder
-
- Enclosing class:
- IdlePruneStrategy
public static class IdlePruneStrategy.Builder extends AgePruneStrategy.Builder
Idle 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdlePruneStrategy.Builder
age(Duration time)
Sets the prune age time.IdlePruneStrategy.Builder
idle(Duration time)
Sets the prune idle time.IdlePruneStrategy.Builder
priority(long l)
Sets the prune priority.protected IdlePruneStrategy.Builder
self()
Returns this builder.-
Methods inherited from class org.ldaptive.pool.AbstractPruneStrategy.AbstractBuilder
build, freeze, period
-
-
-
-
Method Detail
-
self
protected IdlePruneStrategy.Builder self()
Description copied from class:AbstractPruneStrategy.AbstractBuilder
Returns this builder.- Overrides:
self
in classAgePruneStrategy.Builder
- Returns:
- builder
-
idle
public IdlePruneStrategy.Builder idle(Duration time)
Sets the prune idle time.- Parameters:
time
- to set- Returns:
- this builder
-
age
public IdlePruneStrategy.Builder age(Duration time)
Description copied from class:AgePruneStrategy.Builder
Sets the prune age time.- Overrides:
age
in classAgePruneStrategy.Builder
- Parameters:
time
- to set- Returns:
- this builder
-
priority
public IdlePruneStrategy.Builder priority(long l)
Description copied from class:AgePruneStrategy.Builder
Sets the prune priority.- Overrides:
priority
in classAgePruneStrategy.Builder
- Parameters:
l
- prune priority- Returns:
- this builder
-
-