public class CommonPoolImpl extends java.lang.Object implements CommonPool
CommonPool.Tag| Modifier and Type | Field and Description |
|---|---|
protected FlushStrategy |
flushStrategy
flush-strategy
|
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 |
|---|
CommonPoolImpl(java.lang.Integer minPoolSize,
java.lang.Integer maxPoolSize,
java.lang.Boolean prefill,
java.lang.Boolean useStrictMin,
FlushStrategy flushStrategy)
Create a new PoolImpl.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
FlushStrategy |
getFlushStrategy()
Get the flush strategy.
|
java.lang.Integer |
getMaxPoolSize()
Get the maxPoolSize.
|
java.lang.Integer |
getMinPoolSize()
Get the minPoolSize.
|
int |
hashCode() |
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 final java.lang.Integer minPoolSize
protected final java.lang.Integer maxPoolSize
protected final java.lang.Boolean prefill
protected final java.lang.Boolean useStrictMin
protected final FlushStrategy flushStrategy
public CommonPoolImpl(java.lang.Integer minPoolSize,
java.lang.Integer maxPoolSize,
java.lang.Boolean prefill,
java.lang.Boolean useStrictMin,
FlushStrategy flushStrategy)
throws ValidateException
minPoolSize - minPoolSizemaxPoolSize - maxPoolSizeprefill - prefilluseStrictMin - useStrictMinflushStrategy - flushStrategyValidateException - ValidateExceptionpublic final java.lang.Integer getMinPoolSize()
getMinPoolSize in interface CommonPoolpublic final java.lang.Integer getMaxPoolSize()
getMaxPoolSize in interface CommonPoolpublic final java.lang.Boolean isPrefill()
isPrefill in interface CommonPoolpublic final java.lang.Boolean isUseStrictMin()
isUseStrictMin in interface CommonPoolpublic final FlushStrategy getFlushStrategy()
getFlushStrategy in interface CommonPoolpublic void validate()
throws ValidateException
ValidatableMetadatavalidate 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 © 2013 IronJacamar (http://www.ironjacamar.org)