org.apache.openejb.util
Class Pool.Builder<T>
java.lang.Object
org.apache.openejb.util.Pool.Builder<T>
- Enclosing class:
- Pool<T>
public static class Pool.Builder<T>
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Pool.Builder
public Pool.Builder(Pool.Builder<T> that)
Pool.Builder
public Pool.Builder()
getMin
public int getMin()
isGarbageCollection
public boolean isGarbageCollection()
setGarbageCollection
public void setGarbageCollection(boolean garbageCollection)
setReplaceAged
public void setReplaceAged(boolean replaceAged)
setReplaceFlushed
public void setReplaceFlushed(boolean replaceFlushed)
setMaxSize
public void setMaxSize(int max)
setPoolSize
public void setPoolSize(int max)
- Alias for pool size
- Parameters:
max
-
setMinSize
public void setMinSize(int min)
setStrictPooling
public void setStrictPooling(boolean strict)
setMaxAge
public void setMaxAge(Duration maxAge)
getMaxAge
public Duration getMaxAge()
isStrict
public boolean isStrict()
getIdleTimeout
public Duration getIdleTimeout()
getInterval
public Duration getInterval()
isReplaceAged
public boolean isReplaceAged()
setMaxAgeOffset
public void setMaxAgeOffset(double maxAgeOffset)
getMaxAgeOffset
public double getMaxAgeOffset()
setIdleTimeout
public void setIdleTimeout(Duration idleTimeout)
setSweepInterval
public void setSweepInterval(Duration interval)
setSupplier
public void setSupplier(Pool.Supplier<T> supplier)
setExecutor
public void setExecutor(java.util.concurrent.Executor executor)
build
public Pool<T> build()
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.