aicas logo Jamaica 3.4 release 8

com.sun.jndi.ldap.pool
Interface PoolCallback


public interface PoolCallback

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.


Method Summary
 boolean releasePooledConnection(PooledConnection conn)
          Releases a useable connection back to the pool.
 boolean removePooledConnection(PooledConnection conn)
          Removes a connection from the pool.
 

Method Detail

releasePooledConnection

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.

removePooledConnection

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.

aicas logo Jamaica 3.4 release 8

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.