org.ow2.util.pool.impl.enhanced.impl.listener.resizer
Class StatsResizerPool<E,S>

java.lang.Object
  extended by org.ow2.util.pool.impl.enhanced.impl.listener.PoolListenerDispatcherPool<E>
      extended by org.ow2.util.pool.impl.enhanced.impl.listener.resizer.StatsResizerPool<E,S>
Type Parameters:
E - pool item type
S -
All Implemented Interfaces:
IPool<E>

public class StatsResizerPool<E,S>
extends PoolListenerDispatcherPool<E>

Author:
Gael Lalire

Constructor Summary
StatsResizerPool(IPool<E> pool, IPoolStatsListener<E,S> poolStatsListener, S instance, IResizer<S> resizer)
           
 
Method Summary
 void prepareUpdate()
           
 void update()
           
 
Methods inherited from class org.ow2.util.pool.impl.enhanced.impl.listener.PoolListenerDispatcherPool
addPoolListener, get, put, remove, removePoolListener, signalAllWaiters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatsResizerPool

public StatsResizerPool(IPool<E> pool,
                        IPoolStatsListener<E,S> poolStatsListener,
                        S instance,
                        IResizer<S> resizer)
Parameters:
pool - pool to get stats
poolStatsListener - fill and access stats
instance - an stat instance
resizer - the resizer call resize method (on another pool for example)
Method Detail

prepareUpdate

public void prepareUpdate()

update

public void update()


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.