public class QCPoolProperties
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
getMaxInactiveAge()
Returns the value 'maximum inactive age' set for query collections in the pool.
|
double |
getMaxWeight()
Returns the maximum weight allowed in the query collection pool.
|
int |
getMonitorSleepInterval()
Returns the duration in milliseconds that shared query collection pool monitor sleeps between pool checks.
|
int |
getTimeToLive()
Returns the duration in milliseconds that query collections may remain in the pool.
|
void |
setMaxInactiveAge(int maxInactiveAge)
Sets the maximum amount of time (ms) that a query collection may remain
inactive before it is removed from the pool.
|
void |
setMaxWeight(double maxWeight)
Sets the maximum weight allowed in the query collection pool.
|
void |
setMonitorSleepInterval(int sleepInterval)
Sets the time (ms) that shared query collection pool monitor should sleep between pool checks.
|
void |
setTimeToLive(int timeToLive)
Sets the amount of time in milliseconds that a query collection may remain in the pool.
|
public void setMaxWeight(double maxWeight)
-1
, no limit.public double getMaxWeight()
public void setMaxInactiveAge(int maxInactiveAge)
public int getMaxInactiveAge()
public void setTimeToLive(int timeToLive)
public int getTimeToLive()
public void setMonitorSleepInterval(int sleepInterval)
public int getMonitorSleepInterval()