ConnectionPool()
PUBLIC:
A connection pool is used to specify how connection should be pooled in a server session.

ConnectionPool(java.lang.String name,
Login login,
int initialNumberOfConnections,
int minNumberOfConnections,
int maxNumberOfConnections,
ServerSession owner)
PUBLIC:
A connection pool is used to specify how connection should be pooled in a server session.

ConnectionPool(java.lang.String name,
Login login,
int minNumberOfConnections,
int maxNumberOfConnections,
ServerSession owner)
PUBLIC:
A connection pool is used to specify how connection should be pooled in a server session.

ConnectionPool(java.lang.String name,
Login login,
ServerSession owner)
PUBLIC:
A connection pool is used to specify how connection should be pooled in a server session.

Method Summary

org.eclipse.persistence.internal.databaseaccess.Accessor

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

protected org.eclipse.persistence.internal.databaseaccess.Accessor

buildConnection()
INTERNAL:
Create a new connection, accessors are used as connections.

getLogin

getMaxNumberOfConnections

public int getMaxNumberOfConnections()

PUBLIC:
Return the maximum number of connections allowed.
If all connections are in use, a new connection will be created until the maximum size is reach.
Only the minimum number of connections will be pooled, if the pool is between the min and max size
the connection will be disconnected when returned to the pool.
Typically it is desirable to have the min and max connections the same to avoid connects and disconnects.
When the max is reached clients must wait for a connection to become available.

getMinNumberOfConnections

public int getMinNumberOfConnections()

PUBLIC:
Return the minimum number of connections.
If all connections are in use, a new connection will be created until the maximum size is reach.
Only the minimum number of connections will be pooled, if the pool is between the min and max size
the connection will be disconnected when returned to the pool.
Typically it is desirable to have the min and max connections the same to avoid connects and disconnects.

getName

public java.lang.String getName()

PUBLIC:
Return the name of this pool.
Pools are identified by name to allow multiple connection pools.

setInitialNumberOfConnections

PUBLIC:
Set the initial number of connections allowed.
This is the number of connections connected on startup.
The default is 1.

setMaxNumberOfConnections

public void setMaxNumberOfConnections(int maxNumberOfConnections)

PUBLIC:
Set the maximum number of connections allowed.
If all connections are in use, a new connection will be created until the maximum size is reach.
Only the minimum number of connections will be pooled, if the pool is between the min and max size
the connection will be disconnected when returned to the pool.
Typically it is desirable to have the min and max connections the same to avoid connects and disconnects.
When the max is reached clients must wait for a connection to become available.
The default is 32.

setMinNumberOfConnections

public void setMinNumberOfConnections(int minNumberOfConnections)

PUBLIC:
Set the minimum number of connections.
If all connections are in use, a new connection will be created until the maximum size is reach.
Only the minimum number of connections will be pooled, if the pool is between the min and max size
the connection will be disconnected when returned to the pool.
Typically it is desirable to have the min and max connections the same to avoid connects and disconnects.
The default is 32.

setName

public void setName(java.lang.String name)

PUBLIC:
Set the name of this pool.
Pools are identified by name to allow multiple connection pools.