public interface ConnectionManager extends SessionManager
| Modifier and Type | Method and Description |
|---|---|
void |
attach(Session session)
Attaches a
Db to a connection.A Db must be attached before it can use any statements. |
void |
detach(Session session)
Detaches a connection from a
Db.A Db must be detached to release the connection for use of other Db instances. |
void |
forceDetach(Session session)
Detaches but also scans for pending statements to cleanup.
|
Collection<ManagedConnection> |
getConnections()
Gets the connections.
|
int |
getMaxConnections()
Gets the maximum number of connections.
|
int |
getNumConnections()
Gets the number of open connections.
|
getMaxSessions, getName, getNumSessions, login, logout, shutdownvoid attach(Session session)
Db to a connection.Upon return the the session will reference the connection.
session - the sessionPersistenceException - if attach failed.void detach(Session session)
Db.session - the sessionPersistenceException - if detach failed.void forceDetach(Session session)
This will detach at any nesting level!
session - the sessionint getMaxConnections()
int getNumConnections()
Collection<ManagedConnection> getConnections()
Copyright © 2016 Krake Softwaretechnik. All rights reserved.