Top Description Fields Constructors Methods
org.eclipse.persistence.sessions.server

public Class ReadConnectionPool

extends ConnectionPool
Class Inheritance
Imports
org.eclipse.persistence.internal.databaseaccess.*, org.eclipse.persistence.logging.SessionLog, org.eclipse.persistence.sessions.Login, org.eclipse.persistence.exceptions.*

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.

Field Summary

Inherited from org.eclipse.persistence.sessions.server.ConnectionPool:
checkConnectionsconnectionsAvailableconnectionsUsedDEAD_CHECK_TIMEdeadCheckTimefailoverConnectionPoolsINITIAL_CONNECTIONSinitialNumberOfConnectionsisConnectedisDeadloginMAX_CONNECTIONSmaxNumberOfConnectionsMIN_CONNECTIONSminNumberOfConnectionsMONITOR_HEADERnameownertimeOfDeathWAIT_TIMEOUTwaitTimeout

Constructor Summary

AccessConstructor and Description
public
ReadConnectionPool()

PUBLIC: Build a new read connection pool.

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.

Method Summary

Modifier and TypeMethod and Description
public synchronized Accessor
acquireConnection()

Overrides org.eclipse.persistence.sessions.server.ConnectionPool.acquireConnection.

INTERNAL: Wait until a connection is available and allocate the connection for the client.
public boolean
public synchronized void
releaseConnection(Accessor connection)

Overrides org.eclipse.persistence.sessions.server.ConnectionPool.releaseConnection.

INTERNAL: Because connections are not exclusive nothing is required.
Inherited from org.eclipse.persistence.sessions.server.ConnectionPool:
addFailoverConnectionPoolbuildConnectionfailovergetConnectionsAvailablegetConnectionsUsedgetFailoverConnectionPoolsgetInitialNumberOfConnectionsgetLogingetMaxNumberOfConnectionsgetMinNumberOfConnectionsgetNamegetOwnergetTotalNumberOfConnectionsgetWaitTimeoutisConnectedisDeadisThereConflictBetweenLoginAndTyperesetConnectionssetCheckConnectionssetConnectionsAvailablesetConnectionsUsedsetFailoverConnectionPoolssetInitialNumberOfConnectionssetIsConnectedsetIsDeadsetLoginsetMaxNumberOfConnectionssetMinNumberOfConnectionssetNamesetOwnersetWaitTimeoutshutDownstartUptoString

Constructor Detail

ReadConnectionPoolback to summary
public ReadConnectionPool()

PUBLIC: Build a new read connection pool.

ReadConnectionPoolback to summary
public ReadConnectionPool(String name, Login login, ServerSession owner)

PUBLIC: Build a new read connection pool.

ReadConnectionPoolback to summary
public ReadConnectionPool(String name, Login login, int minNumberOfConnections, int maxNumberOfConnections, ServerSession owner)

PUBLIC: Build a new read connection pool.

ReadConnectionPoolback to summary
public ReadConnectionPool(String name, Login login, int initialNumberOfConnections, int minNumberOfConnections, int maxNumberOfConnections, ServerSession owner)

PUBLIC: Build a new read connection pool.

Method Detail

acquireConnectionback to summary
public synchronized Accessor acquireConnection() throws ConcurrencyException

Overrides org.eclipse.persistence.sessions.server.ConnectionPool.acquireConnection.

INTERNAL: Wait until a connection is available and allocate the connection for the client.

Annotations
@Override
hasConnectionAvailableback to summary
public boolean hasConnectionAvailable()

Overrides org.eclipse.persistence.sessions.server.ConnectionPool.hasConnectionAvailable.

INTERNAL: Concurrent reads are supported.

Annotations
@Override
releaseConnectionback to summary
public synchronized void releaseConnection(Accessor connection) throws DatabaseException

Overrides org.eclipse.persistence.sessions.server.ConnectionPool.releaseConnection.

INTERNAL: Because connections are not exclusive nothing is required.

Annotations
@Override