org.ow2.util.pool.impl.enhanced
Class EnhancedCluePoolFactory
java.lang.Object
org.ow2.util.pool.impl.enhanced.EnhancedCluePoolFactory
public class EnhancedCluePoolFactory
- extends java.lang.Object
- Author:
- Gael Lalire
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnhancedCluePoolFactory
public EnhancedCluePoolFactory(IPool<IReusableThread> pool)
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 typeC - 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 typeC - clue type- Parameters:
cluePoolManager - a clue pool managersetSizeShared - 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.