org.jboss.jca.core.connectionmanager.pool.api

## Interface CapacityDecrementer

- All Known Implementing Classes:
    MinPoolSizeDecrementer, SizeDecrementer, TimedOutDecrementer, TimedOutFIFODecrementer, WatermarkDecrementer

      public interface CapacityDecrementer

  The capacity decrementer policy
  Author:
    Jesper Pedersen

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `shouldDestroy(ConnectionListener cl, long timeout, int currentSize, int minPoolSize, int destroyed)` Should the connection listener be destroyed

- - ### Method Detail

    - #### shouldDestroy

          boolean shouldDestroy(ConnectionListener cl,
                                long timeout,
                                int currentSize,
                                int minPoolSize,
                                int destroyed)

      Should the connection listener be destroyed
      Parameters:
        `cl` - The connection listener
        `timeout` - The timeout watermark
        `currentSize` - The current pool size
        `minPoolSize` - The minimum pool size
        `destroyed` - The number of connection listeners destroyed during this call cycle
      Returns:
        `True` if the connection listener should be destroyed; otherwise `false`

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