@Override
    public Object findDontPinNAdjustPinCount(Object key, int adjustPinCount)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.entry(tc, "findDontPinNAdjustPinCount", key +
                                                       ", adujust pin count=" + adjustPinCount);

        Bucket bucket = getBucketForKey(key);
        Object object = null;

        if (bucket != null) // d739870
        {
            synchronized (bucket)
            {
                Element element = bucket.findByKey(key);
                if (element != null)
                {
                    // Touch the LRU flag; since an object cannot be evicted when
                    // pinned, this is the only time when we bother to set the
                    // flag
                    element.accessedSweep = numSweeps;

                    object = element.object;
                    element.pinned += adjustPinCount;
                }
            }
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.exit(tc, "findDontPinNAdjustPinCount", object);

        return object;
    }
@ Override public Object findDontPinNAdjustPinCount ( Object key , int adjustPinCount ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "findDontPinNAdjustPinCount" , key + ", adujust pin count=" + adjustPinCount ) ; Bucket bucket = getBucketForKey ( key ) ; Object object = null ; if ( bucket != null ) { synchronized ( bucket ) { Element element = bucket . findByKey ( key ) ; if ( element != null ) { element . accessedSweep = numSweeps ; object = element . object ; element . pinned += adjustPinCount ; } } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "findDontPinNAdjustPinCount" , object ) ; return object ; }
Return element for the given key but do not pin the element. In addition,
if object is found, add adjustPinCount to the pinned state. <p>

Note: This method is added to support the scenario in the activation
strategy classes that multiple cache.unpin() are called immediately
after the find() operation to negate the pin operation from the
find() as well as other unpin requires to unwind the other pin
operation initiated from transaction and/or activation operation.
This is mainly designed for performance. Typically this will save
about between 75 to 428 instructions or even more depending on
the hashcode implementation of the key object. <p>

@param key key for the object to locate in the cache.
@param adjustPinCount additional pin adjustment count.

@return the object from the cache, or null if there is no object
associated with the key in the cache.
<p>
@see Cache#pin
@see Cache#unpin