Class ObjectPoolConfiguration
- java.lang.Object
-
- org.identityconnectors.common.pooling.ObjectPoolConfiguration
-
public final class ObjectPoolConfiguration extends java.lang.ObjectConfiguration for pooling objects.
-
-
Constructor Summary
Constructors Constructor Description ObjectPoolConfiguration()ObjectPoolConfiguration(ObjectPoolConfiguration other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetMaxIdle()Get the maximum number of idle objects.intgetMaxObjects()Get the set number of maximum objects (idle+active).longgetMaxWait()Max time to wait if the pool is waiting for a free object to become available before failing.longgetMinEvictableIdleTimeMillis()Minimum time to wait before evicting an idle object.intgetMinIdle()Minimum number of idle objects.inthashCode()voidsetMaxIdle(int maxIdle)Sets the maximum number of objects that can sit idle in the pool at any time.voidsetMaxObjects(int maxObjects)Sets the maximum number of objects (idle+active).voidsetMaxWait(long maxWait)Max time to wait if the pool is waiting for a free object to become available before failing.voidsetMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)Minimum time to wait before evicting an idle object.voidsetMinIdle(int minIdle)Minimum number of idle objects.java.lang.StringtoString()voidvalidate()
-
-
-
Constructor Detail
-
ObjectPoolConfiguration
public ObjectPoolConfiguration()
-
ObjectPoolConfiguration
public ObjectPoolConfiguration(ObjectPoolConfiguration other)
-
-
Method Detail
-
getMaxObjects
public int getMaxObjects()
Get the set number of maximum objects (idle+active).
-
setMaxObjects
public void setMaxObjects(int maxObjects)
Sets the maximum number of objects (idle+active).
-
getMaxIdle
public int getMaxIdle()
Get the maximum number of idle objects.
-
setMaxIdle
public void setMaxIdle(int maxIdle)
Sets the maximum number of objects that can sit idle in the pool at any time.
-
getMaxWait
public long getMaxWait()
Max time to wait if the pool is waiting for a free object to become available before failing. Zero means don't wait.
-
setMaxWait
public void setMaxWait(long maxWait)
Max time to wait if the pool is waiting for a free object to become available before failing. Zero means don't wait.
-
getMinEvictableIdleTimeMillis
public long getMinEvictableIdleTimeMillis()
Minimum time to wait before evicting an idle object. Zero means don't wait.
-
setMinEvictableIdleTimeMillis
public void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
Minimum time to wait before evicting an idle object. Zero means don't wait.
-
getMinIdle
public int getMinIdle()
Minimum number of idle objects.
-
setMinIdle
public void setMinIdle(int minIdle)
Minimum number of idle objects.
-
validate
public void validate()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-