Top Description Methods
com.sun.jndi.ldap.pool

public Interface PoolCallback

Known Direct Implementers
com.sun.jndi.ldap.pool.Connections

Represents a callback used to release or remove a PooledConnection back into the pool. A pooled connection typically has a close method that its clients use to indicate that they no longer need the connection. This close method should use the methods defined in this interface to interact with the connection pool to return the connection to the pool. The methods in this interface are typically invoked by a PooledConnection. The methods in this interface are typically implemented by the connection pool manager.
Author
Rosanna Lee

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the connection released; false if the connection is no longer in the pool.
releasePooledConnection
(PooledConnection
The connection to release.
conn
)

Releases a usable connection back to the pool.

public boolean

Returns:

true if the connection was removed; false if the connection is no longer in the pool prior to removal.
removePooledConnection
(PooledConnection
The connection to return.
conn
)

Removes a connection from the pool.

Method Detail

releasePooledConnectionback to summary
public boolean releasePooledConnection(PooledConnection conn)

Releases a usable connection back to the pool.

Parameters
conn:PooledConnection

The connection to release.

Returns:boolean

true if the connection released; false if the connection is no longer in the pool.

removePooledConnectionback to summary
public boolean removePooledConnection(PooledConnection conn)

Removes a connection from the pool. The connection should not be reused. The physical connection should have already been closed.

Parameters
conn:PooledConnection

The connection to return.

Returns:boolean

true if the connection was removed; false if the connection is no longer in the pool prior to removal.