org.ow2.util.pool.impl.enhanced.impl.keepbusy.clue
Class KeepBusyCluePool<E,C>

java.lang.Object
  extended by org.ow2.util.pool.impl.enhanced.impl.keepbusy.KeepBusyPool<E>
      extended by org.ow2.util.pool.impl.enhanced.impl.keepbusy.clue.KeepBusyCluePool<E,C>
Type Parameters:
E - pool item type
C - clue type type of clue
All Implemented Interfaces:
ICluePool<E,C>, IPool<E>

public class KeepBusyCluePool<E,C>
extends KeepBusyPool<E>
implements ICluePool<E,C>

Author:
Gael Lalire

Constructor Summary
KeepBusyCluePool(ICluePool<E,C> cluePool, IClueManager<E,C> clueManager)
           
 
Method Summary
 E get(C clue, IWaitControl timeout)
           
 E get(IWaitControl timeout)
          Because not same behavior.
 
Methods inherited from class org.ow2.util.pool.impl.enhanced.impl.keepbusy.KeepBusyPool
expunge, getBusyPoolItemList, getCurrentWaitAuthorization, getLock, getReferenceQueue, getReferenceType, getShareMethod, getShareMethod0, put, remove, removeAll, setCurrentWaitAuthorization, setShareMethod, signalAllWaiters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.util.pool.impl.enhanced.api.IPool
put, remove, signalAllWaiters
 

Constructor Detail

KeepBusyCluePool

public KeepBusyCluePool(ICluePool<E,C> cluePool,
                        IClueManager<E,C> clueManager)
Method Detail

get

public E get(IWaitControl timeout)
      throws PoolException,
             java.lang.InterruptedException
Because not same behavior.

Specified by:
get in interface IPool<E>
Overrides:
get in class KeepBusyPool<E>
Parameters:
timeout - if the get wait more than timeout then the method throw a TimeoutPoolException.
Returns:
a pool item
Throws:
PoolException - if error occurs
java.lang.InterruptedException

get

public E get(C clue,
             IWaitControl timeout)
      throws PoolException,
             java.lang.InterruptedException
Specified by:
get in interface ICluePool<E,C>
Throws:
PoolException
java.lang.InterruptedException


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