public interface

PoolCallback

com.sun.jndi.ldap.pool.PoolCallback

Class Overview

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.

Summary

Public Methods
abstract boolean releasePooledConnection(PooledConnection conn)
Releases a useable connection back to the pool.
abstract boolean removePooledConnection(PooledConnection conn)
Removes a connection from the pool.

Public Methods

public abstract boolean releasePooledConnection (PooledConnection conn)

Releases a useable connection back to the pool.

Parameters
conn The connection to release.
Returns
  • true if the connection released; false if the connection is no longer in the pool.

public abstract 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 The connection to return.
Returns
  • true if the connection was removed; false if the connection is no longer in the pool prior to removal.