org.ow2.util.pool.impl.enhanced.api.keepbusy
Interface IShareManager<E>

Type Parameters:
E - pool item type

public interface IShareManager<E>

Author:
Gael Lalire

Field Summary
static int NO_POOL_ITEM_SHAREABLE
           
 
Method Summary
 int choosePoolItemToShare(java.util.List<E> poolItemList)
           
 

Field Detail

NO_POOL_ITEM_SHAREABLE

static final int NO_POOL_ITEM_SHAREABLE
See Also:
Constant Field Values
Method Detail

choosePoolItemToShare

int choosePoolItemToShare(java.util.List<E> poolItemList)
Parameters:
poolItemList - the list of pool item
Returns:
a value between 0 and poolItemList.size()-1 or NO_POOL_ITEM_SHAREABLE if you do not want to share


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