/** * Checks for the validity of the root cache node for this region, * creating a new one if it does not exist or is invalid, and also * ensuring that the root node is marked as resident. Suspends any * transaction while doing this to ensure no transactional locks are held * on the region root. * * TODO remove this once JBCACHE-1250 is resolved. */ public void ensureRegionRootExists() { if (regionRoot == null || !regionRoot.isValid()) establishRegionRootNode(); // Fix up the resident flag if (regionRoot != null && regionRoot.isValid() && !regionRoot.isResident()) regionRoot.setResident(true); }
/** * Checks for the validity of the root cache node for this region, * creating a new one if it does not exist or is invalid, and also * ensuring that the root node is marked as resident. Suspends any * transaction while doing this to ensure no transactional locks are held * on the region root. * * TODO remove this once JBCACHE-1250 is resolved. */ public void ensureRegionRootExists() { if (regionRoot == null || !regionRoot.isValid()) establishRegionRootNode(); // Fix up the resident flag if (regionRoot != null && regionRoot.isValid() && !regionRoot.isResident()) regionRoot.setResident(true); }
if (!regionRoot.isResident()) { regionRoot.setResident(true);
if (!regionRoot.isResident()) { regionRoot.setResident(true);