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
SQLException
public void resetConnection(AgroalConnectionFactoryConfiguration connectionFactoryConfiguration) throws SQLException
SQLException
public void closeConnection() throws SQLException
SQLException
public 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 © 2018 JBoss by Red Hat. All rights reserved.