use of org.apache.geode.internal.cache.EntrySnapshot in project geode by apache.
the class NewWANConcurrencyCheckForDestroyDUnitTest method getVersionTimestampAfterOp.
/*
* For VM3 in ds 2.
*/
public static long getVersionTimestampAfterOp() {
Region region = cache.getRegion("repRegion");
assertEquals(1, region.size());
region.destroy("testKey");
Region.Entry entry = ((LocalRegion) region).getEntry("testKey", /* null, */
true);
RegionEntry re = ((EntrySnapshot) entry).getRegionEntry();
LogWriterUtils.getLogWriter().fine("RegionEntry for testKey: " + re.getKey() + " " + re.getValueInVM((LocalRegion) region));
assertTrue(re.getValueInVM((LocalRegion) region) instanceof Tombstone);
VersionTag tag = re.getVersionStamp().asVersionTag();
return tag.getVersionTimeStamp();
}
Aggregations