public class WatermarkIncrementer extends java.lang.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
|
java.lang.String |
toString() |
public void setWatermark(int v)
v
- The valuepublic boolean shouldCreate(int currentSize, int maxSize, int created)
shouldCreate
in interface CapacityIncrementer
currentSize
- 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 false
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014 IronJacamar (http://www.ironjacamar.org)