|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPoolConfiguration
Defines the attributes that can be set on the pool in order to configure it.
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX
Default max is unlimited. |
static int |
DEFAULT_MAX_WAITERS
Default max waiters = 1000. |
static long |
DEFAULT_TIMEOUT
Default timeout = 10 second. |
| Method Summary | |
|---|---|
int |
getMax()
|
int |
getMaxWaiters()
|
long |
getTimeout()
|
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.. |
| Field Detail |
|---|
static final int DEFAULT_MAX
static final long DEFAULT_TIMEOUT
static final int DEFAULT_MAX_WAITERS
| Method Detail |
|---|
int getMax()
void setMax(int max)
max - the given maximum size of the poollong getTimeout()
void setTimeout(long timeout)
timeout - the timeout for waiters that are waiting for an empty element in the pool.int getMaxWaiters()
void setMaxWaiters(int maxWaiters)
maxWaiters - the number of waiters that can wait for the given timeout.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||