
public class WatermarkIncrementer extends Object implements CapacityIncrementer
| Constructor and Description |
|---|
WatermarkIncrementer()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
setWatermark(int v)
Set the watermark
|
boolean |
shouldCreate(int currentSize,
int maxSize,
int created)
Should the connection listener be created
|
public void setWatermark(int v)
v - The valuepublic boolean shouldCreate(int currentSize,
int maxSize,
int created)
shouldCreate in interface CapacityIncrementercurrentSize - The current pool sizemaxSize - The maximum pool sizecreated - The number of connection listeners created during this call cycleTrue if a connection listener should be created; otherwise falseCopyright © 2013 IronJacamar (http://www.ironjacamar.org)