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 CommonPool
public final java.lang.Integer getMaxPoolSize()
getMaxPoolSize
in interface CommonPool
public final java.lang.Boolean isPrefill()
isPrefill
in interface CommonPool
public final java.lang.Boolean isUseStrictMin()
isUseStrictMin
in interface CommonPool
public final FlushStrategy getFlushStrategy()
getFlushStrategy
in interface CommonPool
public void validate() throws ValidateException
ValidatableMetadata
validate
in interface ValidatableMetadata
ValidateException
- in case of validation failpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)