Class PoolImpl
- java.lang.Object
-
- org.jboss.jca.common.metadata.common.PoolImpl
-
- All Implemented Interfaces:
Serializable,Pool,JCAMetadata,ValidatableMetadata
- Direct Known Subclasses:
DsPoolImpl,XaPoolImpl
public class PoolImpl extends Object implements Pool
A PoolImpl.- Author:
- Stefano Maestri
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Capacitycapacitycapacityprotected Booleanfairis-fairprotected FlushStrategyflushStrategyflush-strategyprotected IntegerinitialPoolSizeinitial-pool-sizeprotected IntegermaxPoolSizemaxPoolSizeprotected IntegerminPoolSizeminPoolSizeprotected Booleanprefillprefillprotected BooleanuseStrictMinuse-strict-min
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)CapacitygetCapacity()FlushStrategygetFlushStrategy()IntegergetInitialPoolSize()IntegergetMaxPoolSize()IntegergetMinPoolSize()inthashCode()BooleanisFair()BooleanisPrefill()BooleanisUseStrictMin()StringtoString()voidvalidate()
-
-
-
Field Detail
-
minPoolSize
protected Integer minPoolSize
minPoolSize
-
initialPoolSize
protected Integer initialPoolSize
initial-pool-size
-
maxPoolSize
protected Integer maxPoolSize
maxPoolSize
-
prefill
protected Boolean prefill
prefill
-
useStrictMin
protected Boolean useStrictMin
use-strict-min
-
flushStrategy
protected FlushStrategy flushStrategy
flush-strategy
-
capacity
protected Capacity capacity
capacity
-
fair
protected Boolean fair
is-fair
-
-
Constructor Detail
-
PoolImpl
public PoolImpl(Integer minPoolSize, Integer initialPoolSize, Integer maxPoolSize, Boolean prefill, Boolean useStrictMin, FlushStrategy flushStrategy, Capacity capacity, Boolean fair) throws ValidateException
Constructor- Parameters:
minPoolSize- minPoolSizeinitialPoolSize- initialPoolSizemaxPoolSize- maxPoolSizeprefill- prefilluseStrictMin- useStrictMinflushStrategy- flushStrategycapacity- capacityfair- fair- Throws:
ValidateException- ValidateException
-
-
Method Detail
-
getMinPoolSize
public Integer getMinPoolSize()
- Specified by:
getMinPoolSizein interfacePool
-
getInitialPoolSize
public Integer getInitialPoolSize()
- Specified by:
getInitialPoolSizein interfacePool
-
getMaxPoolSize
public Integer getMaxPoolSize()
- Specified by:
getMaxPoolSizein interfacePool
-
isUseStrictMin
public Boolean isUseStrictMin()
- Specified by:
isUseStrictMinin interfacePool
-
getFlushStrategy
public FlushStrategy getFlushStrategy()
- Specified by:
getFlushStrategyin interfacePool
-
getCapacity
public Capacity getCapacity()
- Specified by:
getCapacityin interfacePool
-
validate
public void validate() throws ValidateException- Specified by:
validatein interfaceValidatableMetadata- Throws:
ValidateException
-
-