org.ow2.util.pool.impl.enhanced.internal.resizer.impl.stocker
Class MinMaxExpectedSpareStockerResizer<S extends StockerStatistics>
java.lang.Object
org.ow2.util.pool.impl.enhanced.internal.resizer.impl.AbstractResizer<S>
org.ow2.util.pool.impl.enhanced.internal.resizer.impl.stocker.MinMaxExpectedSpareStockerResizer<S>
- Type Parameters:
S - statistics type
- All Implemented Interfaces:
- IResizer<S>
public class MinMaxExpectedSpareStockerResizer<S extends StockerStatistics>
- extends AbstractResizer<S>
- Author:
- Gael Lalire
|
Method Summary |
void |
prepareUpdate(S stockedCount)
Prepare an update (calculate next value of expectedSize). |
void |
setExpectedSparePool(int expectedSparePool)
|
void |
setMaxPool(int maxPool)
|
void |
setMinPool(int minPool)
|
void |
update()
This method do not use asynchronous mechanism, so call to setExpectedSize will be made before this method
returns. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_MAX_POOL_LIMIT
public static final int NO_MAX_POOL_LIMIT
- See Also:
- Constant Field Values
MinMaxExpectedSpareStockerResizer
public MinMaxExpectedSpareStockerResizer(int minPool,
int maxPool,
boolean noRegression)
MinMaxExpectedSpareStockerResizer
public MinMaxExpectedSpareStockerResizer(int minPool,
int maxPool,
int expectedSparePool,
boolean noRegression)
prepareUpdate
public void prepareUpdate(S stockedCount)
- Description copied from interface:
IResizer
- Prepare an update (calculate next value of expectedSize).
When this method returns the calcul must be complete (no asynchronous mechanism can be used).
- Parameters:
stockedCount - statistics
update
public void update()
- This method do not use asynchronous mechanism, so call to setExpectedSize will be made before this method
returns.
setExpectedSparePool
public void setExpectedSparePool(int expectedSparePool)
- Parameters:
expectedSparePool - the expectedSparePool to set
setMaxPool
public void setMaxPool(int maxPool)
setMinPool
public void setMinPool(int minPool)
Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.