org.ow2.util.pool.impl.enhanced.impl.listener
Class PoolListenerAdapter<T>

java.lang.Object
  extended by org.ow2.util.pool.impl.enhanced.impl.listener.PoolListenerAdapter<T>
Type Parameters:
T -
All Implemented Interfaces:
IPoolListener<T>
Direct Known Subclasses:
BasicPoolStatsFillerPoolListener, CluePoolListenerAdapter

public class PoolListenerAdapter<T>
extends java.lang.Object
implements IPoolListener<T>

Author:
Gael Lalire

Constructor Summary
PoolListenerAdapter()
           
 
Method Summary
 void getMethodCalled(IWaitControl timeout)
           
 void getMethodFailed(java.lang.Exception e, IWaitControl timeout)
           
 void getMethodReturned(T result, IWaitControl timeout)
           
 void putMethodCalled(T poolItem)
           
 void putMethodFailed(java.lang.Exception e, T poolItem)
           
 void putMethodReturned(T poolItem)
           
 void removeMethodCalled(T poolItem)
           
 void removeMethodFailed(java.lang.Exception e, T poolItem)
           
 void removeMethodReturned(T poolItem)
           
 void signalAllWaitersMethodCalled()
           
 void signalAllWaitersMethodFailed(java.lang.Exception e)
           
 void signalAllWaitersMethodReturned()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoolListenerAdapter

public PoolListenerAdapter()
Method Detail

getMethodCalled

public void getMethodCalled(IWaitControl timeout)
Specified by:
getMethodCalled in interface IPoolListener<T>

getMethodFailed

public void getMethodFailed(java.lang.Exception e,
                            IWaitControl timeout)
Specified by:
getMethodFailed in interface IPoolListener<T>

getMethodReturned

public void getMethodReturned(T result,
                              IWaitControl timeout)
Specified by:
getMethodReturned in interface IPoolListener<T>

putMethodCalled

public void putMethodCalled(T poolItem)
Specified by:
putMethodCalled in interface IPoolListener<T>

putMethodFailed

public void putMethodFailed(java.lang.Exception e,
                            T poolItem)
Specified by:
putMethodFailed in interface IPoolListener<T>

putMethodReturned

public void putMethodReturned(T poolItem)
Specified by:
putMethodReturned in interface IPoolListener<T>

removeMethodCalled

public void removeMethodCalled(T poolItem)
Specified by:
removeMethodCalled in interface IPoolListener<T>

removeMethodFailed

public void removeMethodFailed(java.lang.Exception e,
                               T poolItem)
Specified by:
removeMethodFailed in interface IPoolListener<T>

removeMethodReturned

public void removeMethodReturned(T poolItem)
Specified by:
removeMethodReturned in interface IPoolListener<T>

signalAllWaitersMethodCalled

public void signalAllWaitersMethodCalled()
Specified by:
signalAllWaitersMethodCalled in interface IPoolListener<T>

signalAllWaitersMethodFailed

public void signalAllWaitersMethodFailed(java.lang.Exception e)
Specified by:
signalAllWaitersMethodFailed in interface IPoolListener<T>

signalAllWaitersMethodReturned

public void signalAllWaitersMethodReturned()
Specified by:
signalAllWaitersMethodReturned in interface IPoolListener<T>


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