org.ow2.util.pool.impl.enhanced.deprecated
Class PoolFactoryImpl<E,C>

java.lang.Object
  extended by org.ow2.util.pool.impl.enhanced.impl.listener.PoolListenerAdapter<E>
      extended by org.ow2.util.pool.impl.enhanced.impl.listener.clue.CluePoolListenerAdapter<E,C>
          extended by org.ow2.util.pool.impl.enhanced.deprecated.PoolFactoryImpl<E,C>
Type Parameters:
E -
C -
All Implemented Interfaces:
IPoolItemFactory<E>, IPoolItemRemoveListener<E>, ICluePoolListener<E,C>, IPoolListener<E>, ICluePoolValidator<E,C>, IPoolValidator<E>

Deprecated.

@Deprecated
public class PoolFactoryImpl<E,C>
extends CluePoolListenerAdapter<E,C>
implements IPoolItemFactory<E>, ICluePoolValidator<E,C>, IPoolItemRemoveListener<E>

Author:
Gael Lalire

Constructor Summary
PoolFactoryImpl(PoolFactory<E,C> factory)
          Deprecated.  
 
Method Summary
 E createPoolItem()
          Deprecated.  
 void getMethodReturned(E result, C clue, IWaitControl timeout)
          Deprecated.  
 void getMethodReturned(E result, IWaitControl timeout)
          Deprecated.  
 void poolItemRemoved(E poolItem)
          Deprecated.  
 void putMethodReturned(E poolItem)
          Deprecated. Called after a pool item is available in pool.
 void setClue(E item, C clue)
          Deprecated.  
 boolean validate(E poolItem)
          Deprecated.  
 boolean validate(E poolItem, C clue)
          Deprecated. This method is called when you try to get a pool item with a clue.
 
Methods inherited from class org.ow2.util.pool.impl.enhanced.impl.listener.clue.CluePoolListenerAdapter
getMethodCalled, getMethodFailed
 
Methods inherited from class org.ow2.util.pool.impl.enhanced.impl.listener.PoolListenerAdapter
getMethodCalled, getMethodFailed, putMethodCalled, putMethodFailed, removeMethodCalled, removeMethodFailed, removeMethodReturned, signalAllWaitersMethodCalled, signalAllWaitersMethodFailed, signalAllWaitersMethodReturned
 
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.listener.IPoolListener
getMethodCalled, getMethodFailed, putMethodCalled, putMethodFailed, removeMethodCalled, removeMethodFailed, removeMethodReturned, signalAllWaitersMethodCalled, signalAllWaitersMethodFailed, signalAllWaitersMethodReturned
 

Constructor Detail

PoolFactoryImpl

public PoolFactoryImpl(PoolFactory<E,C> factory)
Deprecated. 
Method Detail

createPoolItem

public E createPoolItem()
Deprecated. 
Specified by:
createPoolItem in interface IPoolItemFactory<E>
Returns:
a new pool item

setClue

public void setClue(E item,
                    C clue)
Deprecated. 

getMethodReturned

public void getMethodReturned(E result,
                              IWaitControl timeout)
Deprecated. 
Specified by:
getMethodReturned in interface IPoolListener<E>
Overrides:
getMethodReturned in class PoolListenerAdapter<E>

getMethodReturned

public void getMethodReturned(E result,
                              C clue,
                              IWaitControl timeout)
Deprecated. 
Specified by:
getMethodReturned in interface ICluePoolListener<E,C>
Overrides:
getMethodReturned in class CluePoolListenerAdapter<E,C>

putMethodReturned

public void putMethodReturned(E poolItem)
Deprecated. 
Called after a pool item is available in pool.

Specified by:
putMethodReturned in interface IPoolListener<E>
Overrides:
putMethodReturned in class PoolListenerAdapter<E>

validate

public boolean validate(E poolItem,
                        C clue)
Deprecated. 
Description copied from interface: ICluePoolValidator
This method is called when you try to get a pool item with a clue. If you try to get an item without a clue then the method in IPoolValidator will be called.

Specified by:
validate in interface ICluePoolValidator<E,C>
Returns:

validate

public boolean validate(E poolItem)
Deprecated. 
Specified by:
validate in interface IPoolValidator<E>

poolItemRemoved

public void poolItemRemoved(E poolItem)
Deprecated. 
Specified by:
poolItemRemoved in interface IPoolItemRemoveListener<E>


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