Class InternalPoolConnection

java.lang.Object
org.mariadb.jdbc.MariaDbPoolConnection
org.mariadb.jdbc.pool.InternalPoolConnection
All Implemented Interfaces:
PooledConnection, XAConnection

public class InternalPoolConnection extends MariaDbPoolConnection
  • Field Details

  • Constructor Details

    • InternalPoolConnection

      public InternalPoolConnection(Connection connection)
      Constructor.
      Parameters:
      connection - connection to retrieve connection options
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface PooledConnection
      Overrides:
      close in class MariaDbPoolConnection
    • getLastUsed

      public AtomicLong getLastUsed()
      Indicate last time this pool connection has been used.
      Returns:
      current last used time (nano).
    • lastUsedToNow

      public void lastUsedToNow()
      Set last poolConnection use to now.