Purpose: The read connection pool is used for read access through the server session. Any of the connection pools can be used for the read pool however this is the default. This pool allows for concurrent reads against the same JDBC connection and requires that the JDBC connection support concurrent read access.
| Access | Constructor and Description |
|---|---|
| public | |
| public | ReadConnectionPool(String name, Login login, ServerSession owner)
PUBLIC: Build a new read connection pool. |
| public | ReadConnectionPool(String name, Login login, int minNumberOfConnections, int maxNumberOfConnections, ServerSession owner)
PUBLIC: Build a new read connection pool. |
| public | ReadConnectionPool(String name, Login login, int initialNumberOfConnections, int minNumberOfConnections, int maxNumberOfConnections, ServerSession owner)
PUBLIC: Build a new read connection pool. |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized Accessor | acquireConnection()
Overrides org. |
| public boolean | hasConnectionAvailable()
Overrides org. |
| public synchronized void | releaseConnection(Accessor connection)
Overrides org. |
| ReadConnectionPool | back to summary |
|---|---|
| public ReadConnectionPool() PUBLIC: Build a new read connection pool. | |
| ReadConnectionPool | back to summary |
|---|---|
| public ReadConnectionPool(String name, Login login, ServerSession owner) PUBLIC: Build a new read connection pool. | |
| ReadConnectionPool | back to summary |
|---|---|
| public ReadConnectionPool(String name, Login login, int minNumberOfConnections, int maxNumberOfConnections, ServerSession owner) PUBLIC: Build a new read connection pool. | |
| ReadConnectionPool | back to summary |
|---|---|
| public ReadConnectionPool(String name, Login login, int initialNumberOfConnections, int minNumberOfConnections, int maxNumberOfConnections, ServerSession owner) PUBLIC: Build a new read connection pool. | |
| acquireConnection | back to summary |
|---|---|
| public synchronized Accessor acquireConnection() throws ConcurrencyException Overrides org. INTERNAL: Wait until a connection is available and allocate the connection for the client.
| |
| hasConnectionAvailable | back to summary |
|---|---|
| public boolean hasConnectionAvailable() Overrides org. INTERNAL: Concurrent reads are supported.
| |
| releaseConnection | back to summary |
|---|---|
| public synchronized void releaseConnection(Accessor connection) throws DatabaseException Overrides org. INTERNAL: Because connections are not exclusive nothing is required.
| |