ObjectPool.invalidateObject

Invalidates an object from the pool. <p> By contract, <code>obj</code> <strong>must</strong> have been obtained using {@link #borrowObject} or a related method as defined in an implementation or sub-interface. </p> <p> This method should be used when an object that has been borrowed is determined (due to an exception or other problem) to be invalid. </p>

@param obj a {@link #borrowObject borrowed} instance to be disposed.

@throws Exception if the instance cannot be invalidated

interface ObjectPool(T)
void
invalidateObject
(
T obj
)

Meta