snaq.db
Class ConnectionPoolEventAdapter

java.lang.Object
  extended by snaq.util.ObjectPoolEventAdapter
      extended by snaq.db.ConnectionPoolEventAdapter
All Implemented Interfaces:
EventListener, ConnectionPoolListener, ObjectPoolListener

public class ConnectionPoolEventAdapter
extends ObjectPoolEventAdapter
implements ConnectionPoolListener

Adapter implementation for handling ConnectionPoolEvent objects for ConnectionPool instances. Provides null implementations of all listener methods so a sub-class can simply override the ones required.

Author:
Giles Winstanley

Constructor Summary
ConnectionPoolEventAdapter()
           
 
Method Summary
 void maxPoolLimitExceeded(ConnectionPoolEvent evt)
          Called when a check-out request causes the maxPool limit to be exceeded.
 void maxPoolLimitReached(ConnectionPoolEvent evt)
          Called when a check-out request causes the maxPool limit to be reached.
 void maxSizeLimitError(ConnectionPoolEvent evt)
          Called when a check-out request attempts to exceed the maxSize limit.
 void maxSizeLimitReached(ConnectionPoolEvent evt)
          Called when a check-out request causes the maxSize limit to be reached.
 void poolCheckIn(ConnectionPoolEvent evt)
          Called when a connection is checked back in to the pool.
 void poolCheckOut(ConnectionPoolEvent evt)
          Called when a connection is checked out of the pool.
 void poolFlushed(ConnectionPoolEvent evt)
          Called when the pool is flushed of free/unused connections.
 void poolInitCompleted(ConnectionPoolEvent evt)
          Called when the pool's ObjectPool.init(int) method has completed.
 void poolParametersChanged(ConnectionPoolEvent evt)
          Called when the pool's parameters are changed.
 void poolReleased(ConnectionPoolEvent evt)
          Called when the pool is released (no more events are fired by the pool after this event).
 void validationError(ConnectionPoolEvent evt)
          Called when a connection is found to be invalid.
 
Methods inherited from class snaq.util.ObjectPoolEventAdapter
maxPoolLimitExceeded, maxPoolLimitReached, maxSizeLimitError, maxSizeLimitReached, poolCheckIn, poolCheckOut, poolFlushed, poolInitCompleted, poolParametersChanged, poolReleased, validationError
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionPoolEventAdapter

public ConnectionPoolEventAdapter()
Method Detail

poolInitCompleted

public void poolInitCompleted(ConnectionPoolEvent evt)
Description copied from interface: ConnectionPoolListener
Called when the pool's ObjectPool.init(int) method has completed.

Specified by:
poolInitCompleted in interface ConnectionPoolListener

poolCheckOut

public void poolCheckOut(ConnectionPoolEvent evt)
Description copied from interface: ConnectionPoolListener
Called when a connection is checked out of the pool.

Specified by:
poolCheckOut in interface ConnectionPoolListener

poolCheckIn

public void poolCheckIn(ConnectionPoolEvent evt)
Description copied from interface: ConnectionPoolListener
Called when a connection is checked back in to the pool.

Specified by:
poolCheckIn in interface ConnectionPoolListener

validationError

public void validationError(ConnectionPoolEvent evt)
Description copied from interface: ConnectionPoolListener
Called when a connection is found to be invalid.

Specified by:
validationError in interface ConnectionPoolListener

maxPoolLimitReached

public void maxPoolLimitReached(ConnectionPoolEvent evt)
Description copied from interface: ConnectionPoolListener
Called when a check-out request causes the maxPool limit to be reached.

Specified by:
maxPoolLimitReached in interface ConnectionPoolListener

maxPoolLimitExceeded

public void maxPoolLimitExceeded(ConnectionPoolEvent evt)
Description copied from interface: ConnectionPoolListener
Called when a check-out request causes the maxPool limit to be exceeded.

Specified by:
maxPoolLimitExceeded in interface ConnectionPoolListener

maxSizeLimitReached

public void maxSizeLimitReached(ConnectionPoolEvent evt)
Description copied from interface: ConnectionPoolListener
Called when a check-out request causes the maxSize limit to be reached. (maxSize is equivalent to maxConn)

Specified by:
maxSizeLimitReached in interface ConnectionPoolListener

maxSizeLimitError

public void maxSizeLimitError(ConnectionPoolEvent evt)
Description copied from interface: ConnectionPoolListener
Called when a check-out request attempts to exceed the maxSize limit. (maxSize is equivalent to maxConn)

Specified by:
maxSizeLimitError in interface ConnectionPoolListener

poolParametersChanged

public void poolParametersChanged(ConnectionPoolEvent evt)
Description copied from interface: ConnectionPoolListener
Called when the pool's parameters are changed.

Specified by:
poolParametersChanged in interface ConnectionPoolListener

poolFlushed

public void poolFlushed(ConnectionPoolEvent evt)
Description copied from interface: ConnectionPoolListener
Called when the pool is flushed of free/unused connections.

Specified by:
poolFlushed in interface ConnectionPoolListener

poolReleased

public void poolReleased(ConnectionPoolEvent evt)
Description copied from interface: ConnectionPoolListener
Called when the pool is released (no more events are fired by the pool after this event).

Specified by:
poolReleased in interface ConnectionPoolListener