org.ow2.util.pool.impl.enhanced.api.keepbusy.clue
Interface IClueShareManager<E,C>

Type Parameters:
E - pool item type
C - clue type

public interface IClueShareManager<E,C>

Author:
Gael Lalire

Method Summary
 int choosePoolItemToShare(C clue, java.util.List<E> poolItemList)
           
 

Method Detail

choosePoolItemToShare

int choosePoolItemToShare(C clue,
                          java.util.List<E> poolItemList)
Parameters:
clue - a clue
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.