@Override protected final boolean localInvalidate() { LocalRegion lr = getLocalRegion(); if (lr.regionInvalid) return false; RegionEventImpl event = new RegionEventImpl(lr, Operation.REGION_EXPIRE_LOCAL_INVALIDATE, null, false, lr.getMyId()); lr.basicInvalidateRegion(event); return true; }
@Override void basicInvalidateRegion(RegionEventImpl event) { final boolean isDebugEnabled = logger.isDebugEnabled(); if (!event.isOriginRemote()) { sendInvalidateRegionMessage(event); } for (BucketRegion br : getDataStore().getAllLocalPrimaryBucketRegions()) { if (logger.isDebugEnabled()) { logger.debug("Invalidating bucket {}", br); } br.basicInvalidateRegion(event); } super.basicInvalidateRegion(event); }
@Override protected final boolean invalidate() throws TimeoutException { LocalRegion lr = getLocalRegion(); if (lr.regionInvalid) { return false; } RegionEventImpl event = new RegionEventImpl(lr, Operation.REGION_EXPIRE_INVALIDATE, null, false, lr.getMyId()); lr.basicInvalidateRegion(event); return true; }
public void localInvalidateRegion(Object aCallbackArgument) { getDataView().checkSupportsRegionInvalidate(); checkReadiness(); checkForNoAccess(); RegionEventImpl event = new RegionEventImpl(this, Operation.REGION_LOCAL_INVALIDATE, aCallbackArgument, false, getMyId()); basicInvalidateRegion(event); }
@Override void basicInvalidateRegion(RegionEventImpl event) { if (!event.isOriginRemote()) { sendInvalidateRegionMessage(event); } for (BucketRegion br : getDataStore().getAllLocalPrimaryBucketRegions()) { logger.fine("Invalidating bucket "+br); br.basicInvalidateRegion(event); } super.basicInvalidateRegion(event); }
public void localInvalidateRegion(Object aCallbackArgument) { getDataView().checkSupportsRegionInvalidate(); checkReadiness(); checkForNoAccess(); RegionEventImpl event = new RegionEventImpl(this, Operation.REGION_LOCAL_INVALIDATE, aCallbackArgument, false, getMyId()); basicInvalidateRegion(event); }
/** * @see LocalRegion#basicInvalidateRegion(RegionEventImpl) */ @Override void basicInvalidateRegion(RegionEventImpl event) { // disallow local invalidation for replicated regions if (!event.isDistributed() && getScope().isDistributed() && getDataPolicy().withReplication()) { throw new IllegalStateException(LocalizedStrings.DistributedRegion_NOT_ALLOWED_TO_DO_A_LOCAL_INVALIDATION_ON_A_REPLICATED_REGION.toLocalizedString()); } if (shouldDistributeInvalidateRegion(event)) { distributeInvalidateRegion(event); } super.basicInvalidateRegion(event); }
basicDestroyRegion(event, distributed); } else { basicInvalidateRegion(event);
/** * @see LocalRegion#basicInvalidateRegion(RegionEventImpl) */ @Override void basicInvalidateRegion(RegionEventImpl event) { // disallow local invalidation for replicated regions if (!event.isDistributed() && getScope().isDistributed() && getDataPolicy().withReplication()) { throw new IllegalStateException(LocalizedStrings.DistributedRegion_NOT_ALLOWED_TO_DO_A_LOCAL_INVALIDATION_ON_A_REPLICATED_REGION.toLocalizedString()); } if (shouldDistributeInvalidateRegion(event)) { distributeInvalidateRegion(event); } super.basicInvalidateRegion(event); }
public void invalidateRegion(Object aCallbackArgument) throws TimeoutException { getDataView().checkSupportsRegionInvalidate(); validateCallbackArg(aCallbackArgument); checkReadiness(); checkForLimitedOrNoAccess(); RegionEventImpl event = new RegionEventImpl(this, Operation.REGION_INVALIDATE, aCallbackArgument, false, getMyId(), generateEventID()); basicInvalidateRegion(event); }
public void invalidateRegion(Object aCallbackArgument) throws TimeoutException { getDataView().checkSupportsRegionInvalidate(); validateCallbackArg(aCallbackArgument); checkReadiness(); checkForLimitedOrNoAccess(); RegionEventImpl event = new RegionEventImpl(this, Operation.REGION_INVALIDATE, aCallbackArgument, false, getMyId(), generateEventID()); basicInvalidateRegion(event); }