
public class SizeDecrementer extends Object implements CapacityDecrementer
| Constructor and Description |
|---|
SizeDecrementer()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
setSize(int v)
Set the size
|
boolean |
shouldDestroy(ConnectionListener cl,
long timeout,
int currentSize,
int minPoolSize,
int destroyed)
Should the connection listener be destroyed
|
public void setSize(int v)
v - The valuepublic boolean shouldDestroy(ConnectionListener cl, long timeout, int currentSize, int minPoolSize, int destroyed)
shouldDestroy in interface CapacityDecrementercl - 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 falseCopyright © 2013 IronJacamar (http://www.ironjacamar.org)