Package org.mariadb.jdbc.pool
Class InternalPoolConnection
java.lang.Object
org.mariadb.jdbc.MariaDbPoolConnection
org.mariadb.jdbc.pool.InternalPoolConnection
- All Implemented Interfaces:
PooledConnection
,XAConnection
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Indicate last time this pool connection has been used.void
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
-
Field Details
-
lastUsed
-
-
Constructor Details
-
InternalPoolConnection
Constructor.- Parameters:
connection
- connection to retrieve connection options
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfacePooledConnection
- Overrides:
close
in classMariaDbPoolConnection
-
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.
-