Package org.mariadb.jdbc.pool
Class InternalPoolConnection
- java.lang.Object
-
- org.mariadb.jdbc.MariaDbPoolConnection
-
- org.mariadb.jdbc.pool.InternalPoolConnection
-
- All Implemented Interfaces:
javax.sql.PooledConnection,javax.sql.XAConnection
public class InternalPoolConnection extends MariaDbPoolConnection
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicLonglastUsed
-
Constructor Summary
Constructors Constructor Description InternalPoolConnection(Connection connection)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.util.concurrent.atomic.AtomicLonggetLastUsed()Indicate last time this pool connection has been used.voidlastUsedToNow()Set last poolConnection use to now.-
Methods inherited from class org.mariadb.jdbc.MariaDbPoolConnection
addConnectionEventListener, addStatementEventListener, fireConnectionClosed, fireConnectionErrorOccurred, fireStatementClosed, fireStatementErrorOccurred, getConnection, getXAResource, removeConnectionEventListener, removeStatementEventListener, xidToString
-
-
-
-
Constructor Detail
-
InternalPoolConnection
public InternalPoolConnection(Connection connection)
Constructor.- Parameters:
connection- connection to retrieve connection options
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfacejavax.sql.PooledConnection- Overrides:
closein classMariaDbPoolConnection
-
getLastUsed
public java.util.concurrent.atomic.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.
-
-