EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.sessions.server
Class ReadConnectionPool

java.lang.Object
  extended by org.eclipse.persistence.sessions.server.ConnectionPool
      extended by org.eclipse.persistence.sessions.server.ReadConnectionPool

public class ReadConnectionPool
extends ConnectionPool

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
 
Fields inherited from class org.eclipse.persistence.sessions.server.ConnectionPool
checkConnections, connectionsAvailable, connectionsUsed, INITIAL_CONNECTIONS, initialNumberOfConnections, isConnected, login, MAX_CONNECTIONS, maxNumberOfConnections, MIN_CONNECTIONS, minNumberOfConnections, MONITOR_HEADER, name, owner, WAIT_TIMEOUT, waitTimeout
 
Constructor Summary
ReadConnectionPool()
          PUBLIC: Build a new read connection pool.
ReadConnectionPool(java.lang.String name, Login login, int initialNumberOfConnections, int minNumberOfConnections, int maxNumberOfConnections, ServerSession owner)
          PUBLIC: Build a new read connection pool.
ReadConnectionPool(java.lang.String name, Login login, int minNumberOfConnections, int maxNumberOfConnections, ServerSession owner)
          PUBLIC: Build a new read connection pool.
ReadConnectionPool(java.lang.String name, Login login, ServerSession owner)
          PUBLIC: Build a new read connection pool.
 
Method Summary
 org.eclipse.persistence.internal.databaseaccess.Accessor acquireConnection()
          INTERNAL: Wait until a connection is available and allocate the connection for the client.
 boolean hasConnectionAvailable()
          INTERNAL: Concurrent reads are supported.
 void releaseConnection(org.eclipse.persistence.internal.databaseaccess.Accessor connection)
          INTERNAL: Because connections are not exclusive nothing is required.
 
Methods inherited from class org.eclipse.persistence.sessions.server.ConnectionPool
buildConnection, getConnectionsAvailable, getConnectionsUsed, getInitialNumberOfConnections, getLogin, getMaxNumberOfConnections, getMinNumberOfConnections, getName, getOwner, getTotalNumberOfConnections, getWaitTimeout, isConnected, isThereConflictBetweenLoginAndType, resetConnections, setCheckConnections, setConnectionsAvailable, setConnectionsUsed, setInitialNumberOfConnections, setIsConnected, setLogin, setMaxNumberOfConnections, setMinNumberOfConnections, setName, setOwner, setWaitTimeout, shutDown, startUp, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReadConnectionPool

public ReadConnectionPool()
PUBLIC: Build a new read connection pool.


ReadConnectionPool

public ReadConnectionPool(java.lang.String name,
                          Login login,
                          ServerSession owner)
PUBLIC: Build a new read connection pool.


ReadConnectionPool

public ReadConnectionPool(java.lang.String name,
                          Login login,
                          int minNumberOfConnections,
                          int maxNumberOfConnections,
                          ServerSession owner)
PUBLIC: Build a new read connection pool.


ReadConnectionPool

public ReadConnectionPool(java.lang.String name,
                          Login login,
                          int initialNumberOfConnections,
                          int minNumberOfConnections,
                          int maxNumberOfConnections,
                          ServerSession owner)
PUBLIC: Build a new read connection pool.

Method Detail

acquireConnection

public org.eclipse.persistence.internal.databaseaccess.Accessor acquireConnection()
                                                                           throws ConcurrencyException
INTERNAL: Wait until a connection is available and allocate the connection for the client.

Overrides:
acquireConnection in class ConnectionPool
Throws:
ConcurrencyException

hasConnectionAvailable

public boolean hasConnectionAvailable()
INTERNAL: Concurrent reads are supported.

Overrides:
hasConnectionAvailable in class ConnectionPool

releaseConnection

public void releaseConnection(org.eclipse.persistence.internal.databaseaccess.Accessor connection)
                       throws DatabaseException
INTERNAL: Because connections are not exclusive nothing is required.

Overrides:
releaseConnection in class ConnectionPool
Throws:
DatabaseException

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference