Constructor and Description |
---|
Builder() |
Builder(Pool.Builder<T> that) |
Modifier and Type | Method and Description |
---|---|
Pool<T> |
build() |
Duration |
getIdleTimeout() |
Duration |
getInterval() |
Duration |
getMaxAge() |
double |
getMaxAgeOffset() |
int |
getMin() |
boolean |
isGarbageCollection() |
boolean |
isReplaceAged() |
boolean |
isStrict() |
void |
setExecutor(java.util.concurrent.Executor executor) |
void |
setGarbageCollection(boolean garbageCollection) |
void |
setIdleTimeout(Duration idleTimeout) |
void |
setMaxAge(Duration maxAge) |
void |
setMaxAgeOffset(double maxAgeOffset) |
void |
setMaxSize(int max) |
void |
setMinSize(int min) |
void |
setPoolSize(int max)
Alias for pool size
|
void |
setReplaceAged(boolean replaceAged) |
void |
setReplaceFlushed(boolean replaceFlushed) |
void |
setScheduledExecutor(java.util.concurrent.ScheduledExecutorService scheduledExecutorService) |
void |
setStrictPooling(boolean strict) |
void |
setSupplier(Pool.Supplier<T> supplier) |
void |
setSweepInterval(Duration interval) |
public Builder(Pool.Builder<T> that)
public Builder()
public int getMin()
public boolean isGarbageCollection()
public void setGarbageCollection(boolean garbageCollection)
public void setReplaceAged(boolean replaceAged)
public void setReplaceFlushed(boolean replaceFlushed)
public void setMaxSize(int max)
public void setPoolSize(int max)
max
- intpublic void setMinSize(int min)
public void setStrictPooling(boolean strict)
public void setMaxAge(Duration maxAge)
public Duration getMaxAge()
public boolean isStrict()
public Duration getIdleTimeout()
public Duration getInterval()
public boolean isReplaceAged()
public void setMaxAgeOffset(double maxAgeOffset)
public double getMaxAgeOffset()
public void setIdleTimeout(Duration idleTimeout)
public void setSweepInterval(Duration interval)
public void setSupplier(Pool.Supplier<T> supplier)
public void setExecutor(java.util.concurrent.Executor executor)
public void setScheduledExecutor(java.util.concurrent.ScheduledExecutorService scheduledExecutorService)