public class PoolSettings extends Object
Constructor and Description |
---|
PoolSettings(int min,
int max,
long checkPeriod,
long maxIdle)
Constructor por pool settings object
|
Modifier and Type | Method and Description |
---|---|
long |
getCheckPeriod() |
int |
getMax() |
long |
getMaxIdle() |
int |
getMin() |
PoolSettings |
setCheckPeriod(long checkPeriod) |
PoolSettings |
setMax(int max) |
PoolSettings |
setMaxIdle(long maxIdle) |
PoolSettings |
setMin(int min) |
public PoolSettings(int min, int max, long checkPeriod, long maxIdle)
min
- Minimum of sessions to be pooled.max
- Maximum of sessions to be pooled.checkPeriod
- Period to check for idle sessions (in seconds)maxIdle
- Maximum time for a idle session to be removed frm the pool, in seconds.public int getMin()
public PoolSettings setMin(int min)
public int getMax()
public PoolSettings setMax(int max)
public long getCheckPeriod()
public PoolSettings setCheckPeriod(long checkPeriod)
public long getMaxIdle()
public PoolSettings setMaxIdle(long maxIdle)
Copyright © 2020. All rights reserved.