|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.util.pool.impl.enhanced.internal.resizer.impl.AsynchronousResizer<S>
S - statistics typepublic class AsynchronousResizer<S>
| Constructor Summary | |
|---|---|
AsynchronousResizer(IResizer<S> poolResizer)
|
|
AsynchronousResizer(IResizer<S> poolResizer,
int threadCount)
|
|
| Method Summary | |
|---|---|
void |
prepareUpdate(S state)
Prepare an update (calculate next value of expectedSize). |
void |
run()
|
void |
setResizable(IResizable resizable)
Resizer will call method on it. |
void |
update()
This method grant that eventually at least one call will be made to setExpectedSize, with stats calculated by latest call to prepareUpdate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsynchronousResizer(IResizer<S> poolResizer)
public AsynchronousResizer(IResizer<S> poolResizer,
int threadCount)
| Method Detail |
|---|
public void prepareUpdate(S state)
IResizer
prepareUpdate in interface IResizer<S>state - statisticspublic void update()
IResizer
update in interface IResizer<S>public void run()
run in interface java.lang.Runnablepublic void setResizable(IResizable resizable)
IResizer
setResizable in interface IResizer<S>resizable - a resizable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||