APIdia Launch Partner
Top Description Methods
com.sun.jndi.ldap.pool

public Interface PooledConnectionFactory

Known Direct Implementers
com.sun.jndi.ldap.LdapClientFactory
Imports
javax.naming.NamingException

Represents a factory that creates PooledConnection. The user of the connection pool should provide an implementation of this interface and pass it to the Pool.getPooledConnection() method. The implementation of the factory should contain all the information necessary to create a PooledConnection.
Author
Rosanna Lee

Method Summary

Modifier and TypeMethod and Description
public PooledConnection
createPooledConnection(PoolCallback
callback responsible for removing and releasing the pooled connection from the pool.
pcb
)

Creates a pooled connection.

public PooledConnection
createPooledConnection(PoolCallback
callback responsible for removing and releasing the pooled connection from the pool.
pcb
,
long
the connection timeout
timeout
)

Creates a pooled connection.

Method Detail

createPooledConnectionback to summary
public PooledConnection createPooledConnection(PoolCallback pcb) throws NamingException

Creates a pooled connection.

Parameters
pcb:PoolCallback

callback responsible for removing and releasing the pooled connection from the pool.

createPooledConnectionback to summary
public PooledConnection createPooledConnection(PoolCallback pcb, long timeout) throws NamingException

Creates a pooled connection.

Parameters
pcb:PoolCallback

callback responsible for removing and releasing the pooled connection from the pool.

timeout:long

the connection timeout