Class PoolTypeImpl<T>

java.lang.Object
org.jboss.jca.embedded.dsl.ironjacamar12.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 Details

    • PoolTypeImpl

      public PoolTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
    • PoolTypeImpl

      public PoolTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
  • Method Details

    • up

      public T up()
      Specified by:
      up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
    • minPoolSize

      public PoolType<T> minPoolSize(Integer minPoolSize)
      Sets the min-pool-size element
      Specified by:
      minPoolSize in interface PoolType<T>
      Parameters:
      minPoolSize - the value for the element min-pool-size
      Returns:
      the current instance of PoolType
    • getMinPoolSize

      public Integer getMinPoolSize()
      Returns the min-pool-size element
      Specified by:
      getMinPoolSize in interface PoolType<T>
      Returns:
      the node defined for the element min-pool-size
    • removeMinPoolSize

      public PoolType<T> removeMinPoolSize()
      Removes the min-pool-size element
      Specified by:
      removeMinPoolSize in interface PoolType<T>
      Returns:
      the current instance of PoolType
    • initialPoolSize

      public PoolType<T> initialPoolSize(Integer initialPoolSize)
      Sets the initial-pool-size element
      Specified by:
      initialPoolSize in interface PoolType<T>
      Parameters:
      initialPoolSize - the value for the element initial-pool-size
      Returns:
      the current instance of PoolType
    • getInitialPoolSize

      public Integer getInitialPoolSize()
      Returns the initial-pool-size element
      Specified by:
      getInitialPoolSize in interface PoolType<T>
      Returns:
      the node defined for the element initial-pool-size
    • removeInitialPoolSize

      public PoolType<T> removeInitialPoolSize()
      Removes the initial-pool-size element
      Specified by:
      removeInitialPoolSize in interface PoolType<T>
      Returns:
      the current instance of PoolType
    • maxPoolSize

      public PoolType<T> maxPoolSize(Integer maxPoolSize)
      Sets the max-pool-size element
      Specified by:
      maxPoolSize in interface PoolType<T>
      Parameters:
      maxPoolSize - the value for the element max-pool-size
      Returns:
      the current instance of PoolType
    • getMaxPoolSize

      public Integer getMaxPoolSize()
      Returns the max-pool-size element
      Specified by:
      getMaxPoolSize in interface PoolType<T>
      Returns:
      the node defined for the element max-pool-size
    • removeMaxPoolSize

      public PoolType<T> removeMaxPoolSize()
      Removes the max-pool-size element
      Specified by:
      removeMaxPoolSize in interface PoolType<T>
      Returns:
      the current instance of PoolType
    • prefill

      public PoolType<T> prefill(Boolean prefill)
      Sets the prefill element
      Specified by:
      prefill in interface PoolType<T>
      Parameters:
      prefill - the value for the element prefill
      Returns:
      the current instance of PoolType
    • isPrefill

      public Boolean isPrefill()
      Returns the prefill element
      Specified by:
      isPrefill in interface PoolType<T>
      Returns:
      the node defined for the element prefill
    • removePrefill

      public PoolType<T> removePrefill()
      Removes the prefill element
      Specified by:
      removePrefill in interface PoolType<T>
      Returns:
      the current instance of PoolType
    • useStrictMin

      public PoolType<T> useStrictMin(Boolean useStrictMin)
      Sets the use-strict-min element
      Specified by:
      useStrictMin in interface PoolType<T>
      Parameters:
      useStrictMin - the value for the element use-strict-min
      Returns:
      the current instance of PoolType
    • isUseStrictMin

      public Boolean isUseStrictMin()
      Returns the use-strict-min element
      Specified by:
      isUseStrictMin in interface PoolType<T>
      Returns:
      the node defined for the element use-strict-min
    • removeUseStrictMin

      public PoolType<T> removeUseStrictMin()
      Removes the use-strict-min element
      Specified by:
      removeUseStrictMin in interface PoolType<T>
      Returns:
      the current instance of PoolType
    • flushStrategy

      public PoolType<T> flushStrategy(String flushStrategy)
      Sets the flush-strategy element
      Specified by:
      flushStrategy in interface PoolType<T>
      Parameters:
      flushStrategy - the value for the element flush-strategy
      Returns:
      the current instance of PoolType
    • getFlushStrategy

      public String getFlushStrategy()
      Returns the flush-strategy element
      Specified by:
      getFlushStrategy in interface PoolType<T>
      Returns:
      the node defined for the element flush-strategy
    • removeFlushStrategy

      public PoolType<T> removeFlushStrategy()
      Removes the flush-strategy element
      Specified by:
      removeFlushStrategy in interface PoolType<T>
      Returns:
      the current instance of PoolType
    • getOrCreateCapacity

      public CapacityType<PoolType<T>> getOrCreateCapacity()
      If not already created, a new capacity element with the given value will be created. Otherwise, the existing capacity element will be returned.
      Specified by:
      getOrCreateCapacity in interface PoolType<T>
      Returns:
      a new or existing instance of CapacityType<PoolType>
    • removeCapacity

      public PoolType<T> removeCapacity()
      Removes the capacity element
      Specified by:
      removeCapacity in interface PoolType<T>
      Returns:
      the current instance of PoolType