org.ow2.util.pool.impl.enhanced.impl.listener.resizer.clue
Class StatsResizerCluePool<E,C,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.clue.CluePoolListenerDispatcherPool<E,C>
          extended by org.ow2.util.pool.impl.enhanced.impl.listener.resizer.clue.StatsResizerCluePool<E,C,S>
Type Parameters:
E - pool item type
C - clue type
S -
All Implemented Interfaces:
ICluePool<E,C>, IPool<E>

public class StatsResizerCluePool<E,C,S>
extends CluePoolListenerDispatcherPool<E,C>

Author:
Gael Lalire

Constructor Summary
StatsResizerCluePool(ICluePool<E,C> pool, ICluePoolStatsListener<E,C,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.clue.CluePoolListenerDispatcherPool
addCluePoolListener, get, removeCluePoolListener
 
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
 
Methods inherited from interface org.ow2.util.pool.impl.enhanced.api.IPool
get, put, remove, signalAllWaiters
 

Constructor Detail

StatsResizerCluePool

public StatsResizerCluePool(ICluePool<E,C> pool,
                            ICluePoolStatsListener<E,C,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.