Class PoolTypeImpl<T>
java.lang.Object
org.jboss.jca.embedded.dsl.resourceadapters13.impl.PoolTypeImpl<T>
- All Implemented Interfaces:
PoolType<T>,org.jboss.shrinkwrap.descriptor.api.Child<T>
public class PoolTypeImpl<T>
extends Object
implements org.jboss.shrinkwrap.descriptor.api.Child<T>, PoolType<T>
This class implements the
poolType xsd type-
Constructor Summary
ConstructorsConstructorDescriptionPoolTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node) PoolTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode) -
Method Summary
Modifier and TypeMethodDescriptionSets thefairelementflushStrategy(String flushStrategy) Sets theflush-strategyelementReturns theflush-strategyelementReturns theinitial-pool-sizeelementReturns themax-pool-sizeelementReturns themin-pool-sizeelementIf not already created, a newcapacityelement with the given value will be created.initialPoolSize(Integer initialPoolSize) Sets theinitial-pool-sizeelementisFair()Returns thefairelementReturns theprefillelementReturns theuse-strict-minelementmaxPoolSize(Integer maxPoolSize) Sets themax-pool-sizeelementminPoolSize(Integer minPoolSize) Sets themin-pool-sizeelementSets theprefillelementRemoves thecapacityelementRemoves thefairelementRemoves theflush-strategyelementRemoves theinitial-pool-sizeelementRemoves themax-pool-sizeelementRemoves themin-pool-sizeelementRemoves theprefillelementRemoves theuse-strict-minelementup()useStrictMin(Boolean useStrictMin) Sets theuse-strict-minelement
-
Constructor Details
-
PoolTypeImpl
-
PoolTypeImpl
-
-
Method Details
-
up
- Specified by:
upin interfaceorg.jboss.shrinkwrap.descriptor.api.Child<T>
-
minPoolSize
Sets themin-pool-sizeelement- Specified by:
minPoolSizein interfacePoolType<T>- Parameters:
minPoolSize- the value for the elementmin-pool-size- Returns:
- the current instance of
PoolType
-
getMinPoolSize
Returns themin-pool-sizeelement- Specified by:
getMinPoolSizein interfacePoolType<T>- Returns:
- the node defined for the element
min-pool-size
-
removeMinPoolSize
Removes themin-pool-sizeelement- Specified by:
removeMinPoolSizein interfacePoolType<T>- Returns:
- the current instance of
PoolType
-
initialPoolSize
Sets theinitial-pool-sizeelement- Specified by:
initialPoolSizein interfacePoolType<T>- Parameters:
initialPoolSize- the value for the elementinitial-pool-size- Returns:
- the current instance of
PoolType
-
getInitialPoolSize
Returns theinitial-pool-sizeelement- Specified by:
getInitialPoolSizein interfacePoolType<T>- Returns:
- the node defined for the element
initial-pool-size
-
removeInitialPoolSize
Removes theinitial-pool-sizeelement- Specified by:
removeInitialPoolSizein interfacePoolType<T>- Returns:
- the current instance of
PoolType
-
maxPoolSize
Sets themax-pool-sizeelement- Specified by:
maxPoolSizein interfacePoolType<T>- Parameters:
maxPoolSize- the value for the elementmax-pool-size- Returns:
- the current instance of
PoolType
-
getMaxPoolSize
Returns themax-pool-sizeelement- Specified by:
getMaxPoolSizein interfacePoolType<T>- Returns:
- the node defined for the element
max-pool-size
-
removeMaxPoolSize
Removes themax-pool-sizeelement- Specified by:
removeMaxPoolSizein interfacePoolType<T>- Returns:
- the current instance of
PoolType
-
prefill
Sets theprefillelement -
isPrefill
Returns theprefillelement -
removePrefill
Removes theprefillelement- Specified by:
removePrefillin interfacePoolType<T>- Returns:
- the current instance of
PoolType
-
fair
Sets thefairelement -
isFair
Returns thefairelement -
removeFair
Removes thefairelement- Specified by:
removeFairin interfacePoolType<T>- Returns:
- the current instance of
PoolType
-
useStrictMin
Sets theuse-strict-minelement- Specified by:
useStrictMinin interfacePoolType<T>- Parameters:
useStrictMin- the value for the elementuse-strict-min- Returns:
- the current instance of
PoolType
-
isUseStrictMin
Returns theuse-strict-minelement- Specified by:
isUseStrictMinin interfacePoolType<T>- Returns:
- the node defined for the element
use-strict-min
-
removeUseStrictMin
Removes theuse-strict-minelement- Specified by:
removeUseStrictMinin interfacePoolType<T>- Returns:
- the current instance of
PoolType
-
flushStrategy
Sets theflush-strategyelement- Specified by:
flushStrategyin interfacePoolType<T>- Parameters:
flushStrategy- the value for the elementflush-strategy- Returns:
- the current instance of
PoolType
-
getFlushStrategy
Returns theflush-strategyelement- Specified by:
getFlushStrategyin interfacePoolType<T>- Returns:
- the node defined for the element
flush-strategy
-
removeFlushStrategy
Removes theflush-strategyelement- Specified by:
removeFlushStrategyin interfacePoolType<T>- Returns:
- the current instance of
PoolType
-
getOrCreateCapacity
If not already created, a newcapacityelement with the given value will be created. Otherwise, the existingcapacityelement will be returned.- Specified by:
getOrCreateCapacityin interfacePoolType<T>- Returns:
- a new or existing instance of
CapacityTypeinvalid input: '<'PoolType>
-
removeCapacity
Removes thecapacityelement- Specified by:
removeCapacityin interfacePoolType<T>- Returns:
- the current instance of
PoolType
-