// best attempt to achieve ordered cache item removal and
// notification.
synchronized ( cacheDesc )
{
// No need to broadcast, or notify if it was not cached.
CompositeCache c = (CompositeCache) cacheDesc.cache;
if ( fromCluster )
{
if ( log.isDebugEnabled() )
{
log.debug( "RemoveALL FROM cluster, NOT updating other auxiliaries for region" );
}
c.localRemoveAll();
}
else
{
if ( log.isDebugEnabled() )
{
log.debug( "RemoveALL NOT from cluster, updating other auxiliaries for region" );
}
c.removeAll();
}
// update registered listeners
if ( !fromCluster || ( fromCluster && rcsa.getLocalClusterConsistency() ) )
{