|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.util.pool.impl.PoolConfiguration
public class PoolConfiguration
Implementation of the Pool Configuration interface.
| Field Summary |
|---|
| Fields inherited from interface org.ow2.util.pool.api.IPoolConfiguration |
|---|
DEFAULT_MAX, DEFAULT_MAX_WAITERS, DEFAULT_TIMEOUT |
| Constructor Summary | |
|---|---|
PoolConfiguration()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one. |
int |
getMax()
|
int |
getMaxWaiters()
|
long |
getTimeout()
|
int |
hashCode()
Returns a hash code value for the pool configuration. |
void |
setMax(int max)
Sets the Maximum size of the pool. |
void |
setMaxWaiters(int maxWaiters)
Sets the number of waiters that can wait for the given timeout. |
void |
setTimeout(long timeout)
Sets the timeout for waiters that are waiting for an empty element in the pool.. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PoolConfiguration()
| Method Detail |
|---|
public int getMax()
getMax in interface org.ow2.util.pool.api.IPoolConfigurationpublic void setMax(int max)
setMax in interface org.ow2.util.pool.api.IPoolConfigurationmax - the given maximum size of the poolpublic long getTimeout()
getTimeout in interface org.ow2.util.pool.api.IPoolConfigurationpublic void setTimeout(long timeout)
setTimeout in interface org.ow2.util.pool.api.IPoolConfigurationtimeout - the timeout for waiters that are waiting for an empty element in the pool.public int getMaxWaiters()
getMaxWaiters in interface org.ow2.util.pool.api.IPoolConfigurationpublic void setMaxWaiters(int maxWaiters)
setMaxWaiters in interface org.ow2.util.pool.api.IPoolConfigurationmaxWaiters - the number of waiters that can wait for the given timeout.public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||