org.jboss.jca.core.connectionmanager.pool.capacity

## Class MaxPoolSizeIncrementer

- java.lang.Object
- - org.jboss.jca.core.connectionmanager.pool.capacity.MaxPoolSizeIncrementer

- All Implemented Interfaces:
    CapacityIncrementer

      public class MaxPoolSizeIncrementer
      extends java.lang.Object
      implements CapacityIncrementer

  Keep incrementing until max-pool-size is reached
  Author:
    Jesper Pedersen

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MaxPoolSizeIncrementer()` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `shouldCreate(int currentSize, int maxSize, int created)` Should the connection listener be created
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### MaxPoolSizeIncrementer

          public MaxPoolSizeIncrementer()

      Constructor

  - ### Method Detail

    - #### shouldCreate

          public boolean shouldCreate(int currentSize,
                                      int maxSize,
                                      int created)

      Should the connection listener be created
      Specified by:
        `shouldCreate` in interface `CapacityIncrementer`
      Parameters:
        `currentSize` - The current pool size
        `maxSize` - The maximum pool size
        `created` - The number of connection listeners created during this call cycle
      Returns:
        `True` if a connection listener should be created; otherwise `false`

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

Copyright © 2014 IronJacamar (http://www.ironjacamar.org)