org.ow2.util.pool.impl.enhanced.api.basic.accessmanager
Interface IAccessManager<E>
- Type Parameters:
E - pool item type
- All Known Subinterfaces:
- IClueAccessManager<E,C>, IRecorderAccessManager<E,I>
- All Known Implementing Classes:
- LastUsedAccessManager, LastUsedClueAccessManager, RandomAccessManager, RoundAccessManager, RoundClueAccessManager
public interface IAccessManager<E>
- Author:
- Gael Lalire
|
Field Summary |
static int |
DELAY_GET
If you return this value it mean you do not want to choose an
item. |
DELAY_GET
static final int DELAY_GET
- If you return this value it mean you do not want to choose an
item.
- See Also:
- Constant Field Values
choosePoolItemToRelease
int choosePoolItemToRelease(java.util.List<? extends E> poolItemList)
- Parameters:
poolItemList - the list of pool item
- Returns:
- a value between 0 and poolItemList.size()-1
choosePoolItemToGet
int choosePoolItemToGet(java.util.List<? extends E> poolItemList)
- Parameters:
poolItemList - the list of pool item
- Returns:
- a value between 0 and poolItemList.size()-1 or
DELAY_GET.
putPoolItem
int putPoolItem(java.util.List<? extends E> poolItemList,
E poolItem)
- Parameters:
poolItemList - the list of pool itempoolItem - poolItem to put in list
- Returns:
- a value between 0 and poolItemList.size()
createPoolItem
int createPoolItem(java.util.List<? extends E> poolItemList,
E poolItem)
- Parameters:
poolItemList - the list of pool itempoolItem - poolItem to put in list
- Returns:
- a value between 0 and poolItemList.size()
removePoolItem
void removePoolItem(E poolItem)
- This callback is useful to clean up data you keep by poolItem.
- Parameters:
poolItem - poolItem
Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.