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 thepoolTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PoolType<T>flushStrategy(String flushStrategy)Sets theflush-strategyelementStringgetFlushStrategy()Returns theflush-strategyelementIntegergetInitialPoolSize()Returns theinitial-pool-sizeelementIntegergetMaxPoolSize()Returns themax-pool-sizeelementIntegergetMinPoolSize()Returns themin-pool-sizeelementCapacityType<PoolType<T>>getOrCreateCapacity()If not already created, a newcapacityelement with the given value will be created.PoolType<T>initialPoolSize(Integer initialPoolSize)Sets theinitial-pool-sizeelementBooleanisPrefill()Returns theprefillelementBooleanisUseStrictMin()Returns theuse-strict-minelementPoolType<T>maxPoolSize(Integer maxPoolSize)Sets themax-pool-sizeelementPoolType<T>minPoolSize(Integer minPoolSize)Sets themin-pool-sizeelementPoolType<T>prefill(Boolean prefill)Sets theprefillelementPoolType<T>removeCapacity()Removes thecapacityelementPoolType<T>removeFlushStrategy()Removes theflush-strategyelementPoolType<T>removeInitialPoolSize()Removes theinitial-pool-sizeelementPoolType<T>removeMaxPoolSize()Removes themax-pool-sizeelementPoolType<T>removeMinPoolSize()Removes themin-pool-sizeelementPoolType<T>removePrefill()Removes theprefillelementPoolType<T>removeUseStrictMin()Removes theuse-strict-minelementPoolType<T>useStrictMin(Boolean useStrictMin)Sets theuse-strict-minelement
-
-
-
Method Detail
-
minPoolSize
PoolType<T> minPoolSize(Integer 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
PoolType<T> removeMinPoolSize()
Removes themin-pool-sizeelement- Returns:
- the current instance of
PoolType
-
initialPoolSize
PoolType<T> initialPoolSize(Integer 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
PoolType<T> removeInitialPoolSize()
Removes theinitial-pool-sizeelement- Returns:
- the current instance of
PoolType
-
maxPoolSize
PoolType<T> maxPoolSize(Integer 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
PoolType<T> removeMaxPoolSize()
Removes themax-pool-sizeelement- Returns:
- the current instance of
PoolType
-
prefill
PoolType<T> prefill(Boolean 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
PoolType<T> removePrefill()
Removes theprefillelement- Returns:
- the current instance of
PoolType
-
useStrictMin
PoolType<T> useStrictMin(Boolean 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
PoolType<T> removeUseStrictMin()
Removes theuse-strict-minelement- Returns:
- the current instance of
PoolType
-
flushStrategy
PoolType<T> flushStrategy(String 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
PoolType<T> removeFlushStrategy()
Removes theflush-strategyelement- 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>
-
-