public void close() { if (this.persistenceAdvisor != null) { this.persistenceAdvisor.close(); } this.advisor.closeAdvisor(); if (this.diskRegion != null) { this.diskRegion.close(null); } }
/** * This method is invoked after isDestroyed has been set to true */ protected void postDestroyRegion(boolean destroyDiskRegion, RegionEventImpl event) { if (this.diskRegion != null) { if (destroyDiskRegion) { this.diskRegion.endDestroy(this); } else { this.diskRegion.close(this); } } if (this.versionVector != null) { try { this.cache.getDistributionManager().removeMembershipListener(this.versionVector); } catch (CancelException ignore) { // ignore: cache close will remove the membership listener } } }
void cleanupFailedInitialization(LocalRegion region) { if (isRecreated() && !this.wasAboutToDestroy() && !this.wasAboutToDestroyDataStorage()) { close(region, isBucket()); } else { if (this.isBucket() && !this.wasAboutToDestroy()) { // Fix for 48642 // If this is a bucket, only destroy the data, if required. beginDestroyDataStorage(); } endDestroy(region); } }