All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rapleaf.jack.transaction.IDbManager Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
package com.rapleaf.jack.transaction;

import java.io.Closeable;

import com.rapleaf.jack.IDb;

interface IDbManager extends Closeable {

  DB getConnection();

  /**
   * Returns a connection to the connection pool, potentially allowing it to be reused in the
   * future.
   */
  void returnConnection(DB connection);

  /**
   * Explicitly signals that the pooled connection is being returned, but should not be used in any
   * way in the future.
   */
  void invalidateConnection(DB connection);

  @Override
  void close();

  DbMetrics getMetrics();

  DbPoolStatus getDbPoolStatus();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy