Interface PoolType<T>
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
PoolTypeImpl
public interface PoolType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
This interface defines the contract for the
poolType xsd type-
Method Summary
Modifier and TypeMethodDescriptionSets theallow-multiple-userselementflushStrategy(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.If not already created, a newconnection-listenerelement with the given value will be created.initialPoolSize(Integer initialPoolSize) Sets theinitial-pool-sizeelementRemoves theallow-multiple-userselementReturns theprefillelementReturns theuse-strict-minelementmaxPoolSize(Integer maxPoolSize) Sets themax-pool-sizeelementminPoolSize(Integer minPoolSize) Sets themin-pool-sizeelementSets theprefillelementRemoves theallow-multiple-userselementRemoves thecapacityelementRemoves theconnection-listenerelementRemoves theflush-strategyelementRemoves theinitial-pool-sizeelementRemoves themax-pool-sizeelementRemoves themin-pool-sizeelementRemoves theprefillelementRemoves theuse-strict-minelementuseStrictMin(Boolean useStrictMin) Sets theuse-strict-minelementMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
minPoolSize
Sets themin-pool-sizeelement- Parameters:
minPoolSize- the value for the elementmin-pool-size- Returns:
- the current instance of
PoolType
-
getMinPoolSize
Integer getMinPoolSize()Returns themin-pool-sizeelement- Returns:
- the node defined for the element
min-pool-size
-
removeMinPoolSize
Removes themin-pool-sizeelement- Returns:
- the current instance of
PoolType
-
initialPoolSize
Sets theinitial-pool-sizeelement- Parameters:
initialPoolSize- the value for the elementinitial-pool-size- Returns:
- the current instance of
PoolType
-
getInitialPoolSize
Integer getInitialPoolSize()Returns theinitial-pool-sizeelement- Returns:
- the node defined for the element
initial-pool-size
-
removeInitialPoolSize
Removes theinitial-pool-sizeelement- Returns:
- the current instance of
PoolType
-
maxPoolSize
Sets themax-pool-sizeelement- Parameters:
maxPoolSize- the value for the elementmax-pool-size- Returns:
- the current instance of
PoolType
-
getMaxPoolSize
Integer getMaxPoolSize()Returns themax-pool-sizeelement- Returns:
- the node defined for the element
max-pool-size
-
removeMaxPoolSize
Removes themax-pool-sizeelement- Returns:
- the current instance of
PoolType
-
prefill
Sets theprefillelement- Parameters:
prefill- the value for the elementprefill- Returns:
- the current instance of
PoolType
-
isPrefill
Boolean isPrefill()Returns theprefillelement- Returns:
- the node defined for the element
prefill
-
removePrefill
Removes theprefillelement- Returns:
- the current instance of
PoolType
-
useStrictMin
Sets theuse-strict-minelement- Parameters:
useStrictMin- the value for the elementuse-strict-min- Returns:
- the current instance of
PoolType
-
isUseStrictMin
Boolean isUseStrictMin()Returns theuse-strict-minelement- Returns:
- the node defined for the element
use-strict-min
-
removeUseStrictMin
Removes theuse-strict-minelement- Returns:
- the current instance of
PoolType
-
flushStrategy
Sets theflush-strategyelement- Parameters:
flushStrategy- the value for the elementflush-strategy- Returns:
- the current instance of
PoolType
-
getFlushStrategy
String getFlushStrategy()Returns theflush-strategyelement- Returns:
- the node defined for the element
flush-strategy
-
removeFlushStrategy
Removes theflush-strategyelement- Returns:
- the current instance of
PoolType
-
allowMultipleUsers
Sets theallow-multiple-userselement- Returns:
- the current instance of
PoolType
-
isAllowMultipleUsers
Boolean isAllowMultipleUsers()Removes theallow-multiple-userselement- Returns:
- the current instance of
PoolType
-
removeAllowMultipleUsers
Removes theallow-multiple-userselement- Returns:
- the current instance of
PoolType
-
getOrCreateCapacity
CapacityType<PoolType<T>> getOrCreateCapacity()If not already created, a newcapacityelement with the given value will be created. Otherwise, the existingcapacityelement will be returned.- Returns:
- a new or existing instance of
CapacityType<PoolType>
-
removeCapacity
Removes thecapacityelement- Returns:
- the current instance of
PoolType
-
getOrCreateConnectionListener
ExtensionType<PoolType<T>> getOrCreateConnectionListener()If not already created, a newconnection-listenerelement with the given value will be created. Otherwise, the existingconnection-listenerelement will be returned.- Returns:
- a new or existing instance of
ExtensionType<PoolType>
-
removeConnectionListener
Removes theconnection-listenerelement- Returns:
- the current instance of
PoolType
-