
public class WatermarkDecrementer extends java.lang.Object implements CapacityDecrementer
| Constructor and Description |
|---|
WatermarkDecrementer()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
setWatermark(int v)
Set the watermark
|
boolean |
shouldDestroy(ConnectionListener cl,
long timeout,
int currentSize,
int minPoolSize,
int destroyed)
Should the connection listener be destroyed
|
java.lang.String |
toString() |
public void setWatermark(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 falsepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014 IronJacamar (http://www.ironjacamar.org)