public final void releaseItem ( ) throws SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "releaseItem" ) ; synchronized ( this ) { _strongReferenceToItem = NULL_STRONG_REF ; } if ( _softReferenceToItem != null ) { _softReferenceToItem . clear ( ) ; } // Defect 601995 if ( _isStorageManaged && ( _itemCacheManagedReference != NULL_CACHE_REF ) ) { _itemCache . unmanage ( this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { SibTr . debug ( this , tc , "release item(" + getID ( ) + ":" + _inMemoryItemSize + ") new cacheSize = " + _itemCache . getCurrentSize ( ) ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "releaseItem" ) ; }
Releases all references to the item as a result of the final removal of the item from the MS