Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated)
11g Release 1 (11.1.1)

B32476-04

oracle.toplink.threetier
Class ConnectionPool

java.lang.Object
  extended by oracle.toplink.threetier.ConnectionPool
Direct Known Subclasses:
ExternalConnectionPool, ReadConnectionPool

public class ConnectionPool
extends java.lang.Object

Purpose: Used to specify how connection should be pooled in a server session.

See Also:
oracle.toplink.threetier.ServerSession

Constructor Summary
ConnectionPool()
          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)
          A connection pool is used to specify how connection should be pooled in a server session.
 
Method Summary
 Login getLogin()
          Return the login used to create connections.
 int getMaxNumberOfConnections()
          Return the maximum number of connections allowed.
 int getMinNumberOfConnections()
          Return the minimum number of connections.
 java.lang.String getName()
          Return the name of this pool.
 void setLogin(Login login)
          Set the login used to create connections.
 void setMaxNumberOfConnections(int maxNumberOfConnections)
          Set the maximum number of connections allowed.
 void setMinNumberOfConnections(int minNumberOfConnections)
          Set the minimum number of connections.
 void setName(java.lang.String name)
          Set the name of this pool.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionPool

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


ConnectionPool

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

Method Detail

getLogin

public Login getLogin()
Return the login used to create connections.


getMaxNumberOfConnections

public int getMaxNumberOfConnections()
Return the maximum number of connections allowed. When the max is reached clients must wait for a connection to become available.


getMinNumberOfConnections

public int getMinNumberOfConnections()
Return the minimum number of connections. These connection will be create on startup.


getName

public java.lang.String getName()
Return the name of this pool. Pools are identified by name to allow multiple connection pools.


setLogin

public void setLogin(Login login)
Set the login used to create connections.


setMaxNumberOfConnections

public void setMaxNumberOfConnections(int maxNumberOfConnections)
Set the maximum number of connections allowed. When the max is reached clients must wait for a connection to become available.


setMinNumberOfConnections

public void setMinNumberOfConnections(int minNumberOfConnections)
Set the minimum number of connections. These connection will be create on startup.


setName

public void setName(java.lang.String name)
Set the name of this pool. Pools are identified by name to allow multiple connection pools.


Copyright © 1998, 2012, Oracle. All Rights Reserved.