public final class ObjectPoolConfiguration extends Object
Constructor and Description |
---|
ObjectPoolConfiguration() |
ObjectPoolConfiguration(ObjectPoolConfiguration other) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getMaxIdle()
Get the maximum number of idle objects.
|
int |
getMaxObjects()
Get the set number of maximum objects (idle+active).
|
long |
getMaxWait()
Max time to wait if the pool is waiting for a free object to become
available before failing.
|
long |
getMinEvictableIdleTimeMillis()
Minimum time to wait before evicting an idle object.
|
int |
getMinIdle()
Minimum number of idle objects.
|
int |
hashCode() |
void |
setMaxIdle(int maxIdle)
Sets the maximum number of objects that can sit idle in the pool at any
time.
|
void |
setMaxObjects(int maxObjects)
Sets the maximum number of objects (idle+active).
|
void |
setMaxWait(long maxWait)
Max time to wait if the pool is waiting for a free object to become
available before failing.
|
void |
setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
Minimum time to wait before evicting an idle object.
|
void |
setMinIdle(int minIdle)
Minimum number of idle objects.
|
String |
toString() |
void |
validate() |
public ObjectPoolConfiguration()
public ObjectPoolConfiguration(ObjectPoolConfiguration other)
public int getMaxObjects()
public void setMaxObjects(int maxObjects)
public int getMaxIdle()
public void setMaxIdle(int maxIdle)
public long getMaxWait()
public void setMaxWait(long maxWait)
public long getMinEvictableIdleTimeMillis()
public void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
public int getMinIdle()
public void setMinIdle(int minIdle)
public void validate()
Copyright © 2019. All rights reserved.