snaq.db
Interface ConnectionPoolListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
ConnectionPoolEventAdapter, DBPoolDataSource

public interface ConnectionPoolListener
extends EventListener

Listener for ConnectionPoolEvent instances. Listeners should ensure the implementations of the listed methods return quickly. Tasks that require more time should spawn a new thread.

Author:
Giles Winstanley

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.
 

Method Detail

poolInitCompleted

void poolInitCompleted(ConnectionPoolEvent evt)
Called when the pool's ObjectPool.init(int) method has completed.


poolCheckOut

void poolCheckOut(ConnectionPoolEvent evt)
Called when a connection is checked out of the pool.


poolCheckIn

void poolCheckIn(ConnectionPoolEvent evt)
Called when a connection is checked back in to the pool.


validationError

void validationError(ConnectionPoolEvent evt)
Called when a connection is found to be invalid.


maxPoolLimitReached

void maxPoolLimitReached(ConnectionPoolEvent evt)
Called when a check-out request causes the maxPool limit to be reached.


maxPoolLimitExceeded

void maxPoolLimitExceeded(ConnectionPoolEvent evt)
Called when a check-out request causes the maxPool limit to be exceeded.


maxSizeLimitReached

void maxSizeLimitReached(ConnectionPoolEvent evt)
Called when a check-out request causes the maxSize limit to be reached. (maxSize is equivalent to maxConn)


maxSizeLimitError

void maxSizeLimitError(ConnectionPoolEvent evt)
Called when a check-out request attempts to exceed the maxSize limit. (maxSize is equivalent to maxConn)


poolParametersChanged

void poolParametersChanged(ConnectionPoolEvent evt)
Called when the pool's parameters are changed.


poolFlushed

void poolFlushed(ConnectionPoolEvent evt)
Called when the pool is flushed of free/unused connections.


poolReleased

void poolReleased(ConnectionPoolEvent evt)
Called when the pool is released (no more events are fired by the pool after this event).