public final class ConnectionHandler extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionHandler.DirtyAttribute |
static class |
ConnectionHandler.State |
| Constructor and Description |
|---|
ConnectionHandler(Connection connection,
ConnectionPool pool) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection() |
Connection |
getConnection() |
Thread |
getHoldingThread() |
long |
getLastAccess() |
boolean |
isActive() |
void |
resetConnection(AgroalConnectionFactoryConfiguration connectionFactoryConfiguration) |
void |
returnConnection() |
void |
setDirtyAttribute(ConnectionHandler.DirtyAttribute attribute) |
void |
setHoldingThread(Thread holdingThread) |
void |
setLastAccess(long lastAccess) |
void |
setState(ConnectionHandler.State newState) |
boolean |
setState(ConnectionHandler.State expected,
ConnectionHandler.State newState) |
public ConnectionHandler(Connection connection, ConnectionPool pool)
public Connection getConnection()
public void returnConnection()
throws SQLException
SQLExceptionpublic void resetConnection(AgroalConnectionFactoryConfiguration connectionFactoryConfiguration) throws SQLException
SQLExceptionpublic void closeConnection()
throws SQLException
SQLExceptionpublic boolean setState(ConnectionHandler.State expected, ConnectionHandler.State newState)
public void setState(ConnectionHandler.State newState)
public boolean isActive()
public long getLastAccess()
public void setLastAccess(long lastAccess)
public Thread getHoldingThread()
public void setHoldingThread(Thread holdingThread)
public void setDirtyAttribute(ConnectionHandler.DirtyAttribute attribute)
Copyright © 2017 JBoss by Red Hat. All rights reserved.