Interface NewConnectionInitializer


public interface NewConnectionInitializer
A DataSourcePool listener which allows you to hook on the create connections process of the pool.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called after a connection has been initialized (after onCreatedConnection) and all settings applied.
    default void
    Called after a connection has been created, before any initialization.
  • Method Details

    • preInitialize

      default void preInitialize(Connection connection)
      Called after a connection has been created, before any initialization.
      Parameters:
      connection - the created connection
    • postInitialize

      default void postInitialize(Connection connection)
      Called after a connection has been initialized (after onCreatedConnection) and all settings applied.
      Parameters:
      connection - the created connection