public class SizeIncrementer extends java.lang.Object implements CapacityIncrementer
Constructor and Description |
---|
SizeIncrementer()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
setSize(int v)
Set the size
|
boolean |
shouldCreate(int currentSize,
int maxSize,
int created)
Should the connection listener be created
|
public void setSize(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
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)