public class MinPoolSizeDecrementer extends java.lang.Object implements CapacityDecrementer
Constructor and Description |
---|
MinPoolSizeDecrementer()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
shouldDestroy(ConnectionListener cl,
long timeout,
int currentSize,
int minPoolSize,
int destroyed)
Should the connection listener be destroyed
|
public boolean shouldDestroy(ConnectionListener cl, long timeout, int currentSize, int minPoolSize, int destroyed)
shouldDestroy
in interface CapacityDecrementer
cl
- The connection listenertimeout
- The timeout watermarkcurrentSize
- The current pool sizeminPoolSize
- The minimum pool sizedestroyed
- The number of connection listeners destroyed during this call cycleTrue
if the connection listener should be destroyed; otherwise false
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)