org.jboss.jca.common.metadata.common
Class CommonPoolImpl

java.lang.Object
  extended by org.jboss.jca.common.metadata.common.CommonPoolImpl
All Implemented Interfaces:
Serializable, org.jboss.jca.common.api.metadata.common.CommonPool, org.jboss.jca.common.api.metadata.JCAMetadata, org.jboss.jca.common.api.metadata.ValidatableMetadata
Direct Known Subclasses:
CommonXaPoolImpl

public class CommonPoolImpl
extends Object
implements org.jboss.jca.common.api.metadata.common.CommonPool

A PoolImpl.

Author:
Stefano Maestri
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.jca.common.api.metadata.common.CommonPool
org.jboss.jca.common.api.metadata.common.CommonPool.Tag
 
Field Summary
protected  org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy
          flush-strategy
protected  Integer maxPoolSize
          maxPoolSize
protected  Integer minPoolSize
          minPoolSize
protected  Boolean prefill
          prefill
protected  Boolean useStrictMin
          use-strict-min
 
Constructor Summary
CommonPoolImpl(Integer minPoolSize, Integer maxPoolSize, Boolean prefill, Boolean useStrictMin, org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy)
          Create a new PoolImpl.
 
Method Summary
 org.jboss.jca.common.api.metadata.common.FlushStrategy getFlushStrategy()
          Get the flush strategy.
 Integer getMaxPoolSize()
          Get the maxPoolSize.
 Integer getMinPoolSize()
          Get the minPoolSize.
 Boolean isPrefill()
          Get the prefill.
 Boolean isUseStrictMin()
          Get the useStrictMin.
 String toString()
          
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

minPoolSize

protected final Integer minPoolSize
minPoolSize


maxPoolSize

protected final Integer maxPoolSize
maxPoolSize


prefill

protected final Boolean prefill
prefill


useStrictMin

protected final Boolean useStrictMin
use-strict-min


flushStrategy

protected final org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy
flush-strategy

Constructor Detail

CommonPoolImpl

public CommonPoolImpl(Integer minPoolSize,
                      Integer maxPoolSize,
                      Boolean prefill,
                      Boolean useStrictMin,
                      org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy)
               throws org.jboss.jca.common.api.validator.ValidateException
Create a new PoolImpl.

Parameters:
minPoolSize - minPoolSize
maxPoolSize - maxPoolSize
prefill - prefill
useStrictMin - useStrictMin
flushStrategy - flushStrategy
Throws:
org.jboss.jca.common.api.validator.ValidateException - ValidateException
Method Detail

getMinPoolSize

public final Integer getMinPoolSize()
Get the minPoolSize.

Specified by:
getMinPoolSize in interface org.jboss.jca.common.api.metadata.common.CommonPool
Returns:
the minPoolSize.

getMaxPoolSize

public final Integer getMaxPoolSize()
Get the maxPoolSize.

Specified by:
getMaxPoolSize in interface org.jboss.jca.common.api.metadata.common.CommonPool
Returns:
the maxPoolSize.

isPrefill

public final Boolean isPrefill()
Get the prefill.

Specified by:
isPrefill in interface org.jboss.jca.common.api.metadata.common.CommonPool
Returns:
the prefill.

isUseStrictMin

public final Boolean isUseStrictMin()
Get the useStrictMin.

Specified by:
isUseStrictMin in interface org.jboss.jca.common.api.metadata.common.CommonPool
Returns:
the useStrictMin.

getFlushStrategy

public final org.jboss.jca.common.api.metadata.common.FlushStrategy getFlushStrategy()
Get the flush strategy.

Specified by:
getFlushStrategy in interface org.jboss.jca.common.api.metadata.common.CommonPool
Returns:
The value

validate

public void validate()
              throws org.jboss.jca.common.api.validator.ValidateException
Specified by:
validate in interface org.jboss.jca.common.api.metadata.ValidatableMetadata
Throws:
org.jboss.jca.common.api.validator.ValidateException

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)