
public class PoolImpl extends java.lang.Object implements Pool
| Modifier and Type | Field and Description |
|---|---|
protected Capacity |
capacity
capacity
|
protected java.lang.Boolean |
fair
is-fair
|
protected FlushStrategy |
flushStrategy
flush-strategy
|
protected java.lang.Integer |
initialPoolSize
initial-pool-size
|
protected java.lang.Integer |
maxPoolSize
maxPoolSize
|
protected java.lang.Integer |
minPoolSize
minPoolSize
|
protected java.lang.Boolean |
prefill
prefill
|
protected java.lang.Boolean |
useStrictMin
use-strict-min
|
| Constructor and Description |
|---|
PoolImpl(java.lang.Integer minPoolSize,
java.lang.Integer initialPoolSize,
java.lang.Integer maxPoolSize,
java.lang.Boolean prefill,
java.lang.Boolean useStrictMin,
FlushStrategy flushStrategy,
Capacity capacity,
java.lang.Boolean fair)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Capacity |
getCapacity()
Get the capacity
|
FlushStrategy |
getFlushStrategy()
Get the flushStrategy.
|
java.lang.Integer |
getInitialPoolSize()
Get the initial pool size
|
java.lang.Integer |
getMaxPoolSize()
Get the maxPoolSize.
|
java.lang.Integer |
getMinPoolSize()
Get the minPoolSize.
|
int |
hashCode() |
java.lang.Boolean |
isFair()
Get pool fairness.
|
java.lang.Boolean |
isPrefill()
Get the prefill.
|
java.lang.Boolean |
isUseStrictMin()
Get the useStrictMin.
|
java.lang.String |
toString() |
void |
validate()
Validate this metadata according validation required by specification
|
protected java.lang.Integer minPoolSize
protected java.lang.Integer initialPoolSize
protected java.lang.Integer maxPoolSize
protected java.lang.Boolean prefill
protected java.lang.Boolean useStrictMin
protected FlushStrategy flushStrategy
protected Capacity capacity
protected java.lang.Boolean fair
public PoolImpl(java.lang.Integer minPoolSize,
java.lang.Integer initialPoolSize,
java.lang.Integer maxPoolSize,
java.lang.Boolean prefill,
java.lang.Boolean useStrictMin,
FlushStrategy flushStrategy,
Capacity capacity,
java.lang.Boolean fair)
throws ValidateException
minPoolSize - minPoolSizeinitialPoolSize - initialPoolSizemaxPoolSize - maxPoolSizeprefill - prefilluseStrictMin - useStrictMinflushStrategy - flushStrategycapacity - capacityfair - fairValidateException - ValidateExceptionpublic java.lang.Integer getMinPoolSize()
getMinPoolSize in interface Poolpublic java.lang.Integer getInitialPoolSize()
getInitialPoolSize in interface Poolpublic java.lang.Integer getMaxPoolSize()
getMaxPoolSize in interface Poolpublic java.lang.Boolean isPrefill()
public java.lang.Boolean isUseStrictMin()
isUseStrictMin in interface Poolpublic FlushStrategy getFlushStrategy()
getFlushStrategy in interface Poolpublic Capacity getCapacity()
getCapacity in interface Poolpublic java.lang.Boolean isFair()
public void validate()
throws ValidateException
validate in interface ValidatableMetadataValidateException - in case of validation failpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014 IronJacamar (http://www.ironjacamar.org)