Interface ConnectionCustomizer


public interface ConnectionCustomizer
Listener of connections created by a PoolingDataSource. Implementations of this class must be serializable and are handed raw, physical database Connections
Author:
Ludovic Orban
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onAcquire(Connection connection, String uniqueName)
    Called when the physical connection is created.
    void
    onDestroy(Connection connection, String uniqueName)
    Called when the physical connection is destroyed.
  • Method Details

    • onAcquire

      void onAcquire(Connection connection, String uniqueName)
      Called when the physical connection is created.
      Parameters:
      connection - the physical connection.
      uniqueName - the PoolingDataSource unique name.
    • onDestroy

      void onDestroy(Connection connection, String uniqueName)
      Called when the physical connection is destroyed.
      Parameters:
      connection - the physical connection.
      uniqueName - the PoolingDataSource unique name.