@Override
    public final void setDiscardStrategy(DiscardStrategy strategy)
    {
        discardStrategy = strategy;

        // Determine if the DiscardStrategy requires locking for eviction
        // processing.                                                     PK04804
        if (strategy instanceof DiscardWithLockStrategy)
        {
            ivEvictionLocks =
                            ((DiscardWithLockStrategy) strategy).getEvictionLockTable();
        }
    }
@ Override public final void setDiscardStrategy ( DiscardStrategy strategy ) { discardStrategy = strategy ; if ( strategy instanceof DiscardWithLockStrategy ) { ivEvictionLocks = ( ( DiscardWithLockStrategy ) strategy ) . getEvictionLockTable ( ) ; } }
Install a {@link DiscardStrategy} for the cache, which provides
a mechanism for cleaning up objects which are evicted from the cache.
<p>

@param strategy An instance of a <code>DiscardStrategy</code>.
<p>
@see com.ibm.websphere.csi.DiscardStrategy
@see com.ibm.ejs.container.activator.Activator
@see com.ibm.ejs.container.WrapperManager