org.ow2.util.pool.impl.enhanced
Class EnhancedCluePoolFactory

java.lang.Object
  extended by org.ow2.util.pool.impl.enhanced.EnhancedCluePoolFactory

public class EnhancedCluePoolFactory
extends java.lang.Object

Author:
Gael Lalire

Constructor Summary
EnhancedCluePoolFactory(IPool<IReusableThread> pool)
           
 
Method Summary
<E,C> EnhancedCluePool<E,C>
createEnhancedCluePool(ICluePoolManager<E,C> cluePoolManager)
          You should use this method to create EnhancedCluePool.
<E,C> EnhancedCluePool<E,C>
createEnhancedCluePool(ICluePoolManager<E,C> cluePoolManager, boolean setSizeShared, boolean schedulerShared)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnhancedCluePoolFactory

public EnhancedCluePoolFactory(IPool<IReusableThread> pool)
Method Detail

createEnhancedCluePool

public <E,C> EnhancedCluePool<E,C> createEnhancedCluePool(ICluePoolManager<E,C> cluePoolManager)
You should use this method to create EnhancedCluePool.

Type Parameters:
E - pool item type
C - clue type
Parameters:
cluePoolManager - a clue pool manager
Returns:
a new clue pool

createEnhancedCluePool

public <E,C> EnhancedCluePool<E,C> createEnhancedCluePool(ICluePoolManager<E,C> cluePoolManager,
                                                          boolean setSizeShared,
                                                          boolean schedulerShared)
Type Parameters:
E - pool item type
C - clue type
Parameters:
cluePoolManager - a clue pool manager
setSizeShared - if true setExpectiveSize will be called in a separate thread, you should prefers the schedulerShared option because on a remove call the creation will be on self thread.
schedulerShared - each time a pool item is needed a shared executor will be used
Returns:
a new clue pool


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