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

com.twitter.finagle.mysql.Session.scala Maven / Gradle / Ivy

There is a newer version: 24.2.0
Show newest version
package com.twitter.finagle.mysql

import com.twitter.util.Future

/**
 * Explicitly manage the lifecycle of a MySQL session.
 *
 * @see Client#session()
 */
trait Session {

  /**
   * Discard the session. The connection will become unusable and will not be returned to the pool.
   * This can be used when an error is detected at the application level that signifies that the
   * session is no longer usable or that the server state is unknown or inconsistent.
   */
  def discard(): Future[Unit]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy