本文整理了Java中org.apache.geode.cache.Region.localInvalidateRegion
方法的一些代码示例,展示了Region.localInvalidateRegion
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Region.localInvalidateRegion
方法的具体详情如下:
包路径:org.apache.geode.cache.Region
类名称:Region
方法名:localInvalidateRegion
[英]Invalidates this region in the local cache only. Invalidation cascades to all entries and subregions. After the invalidateRegion
, this region and the entries in it still exist. To remove all the entries and this region, destroyRegion should be used. Does not update any CacheStatistics
.
[中]仅在本地缓存中使该区域无效。失效级联到所有条目和子区域。在invalidateRegion
之后,该区域及其条目仍然存在。要删除所有条目和此区域,应使用destroyRegion。不更新任何CacheStatistics
。
代码示例来源:origin: apache/geode
public void localInvalidateRegion() {
this.region.localInvalidateRegion();
}
代码示例来源:origin: apache/geode
public void localInvalidateRegion(Object aCallbackArgument) {
this.region.localInvalidateRegion(aCallbackArgument);
}
代码示例来源:origin: apache/geode
@Override
public void process(ClusterDistributionManager dm) {
Region r = getRegion(dm.getSystem());
if (r != null) {
try {
if (action == ExpirationAction.LOCAL_DESTROY) {
r.localDestroyRegion();
} else if (action == ExpirationAction.DESTROY) {
r.destroyRegion();
} else if (action == ExpirationAction.INVALIDATE) {
r.invalidateRegion();
} else if (action == ExpirationAction.LOCAL_INVALIDATE) {
r.localInvalidateRegion();
}
} catch (Exception e) {
logger.warn("Failed attempt to destroy or invalidate region {} from console at {}",
new Object[] {r.getFullPath(), this.getSender()});
}
}
}
代码示例来源:origin: apache/geode
region.localInvalidateRegion();
if (isKV)
fail("Should have thrown an IllegalStateException");
代码示例来源:origin: apache/geode
region.localInvalidateRegion();
fail("Should have thrown a RegionDestroyedException");
代码示例来源:origin: apache/geode
region.localInvalidateRegion();
fail("Should have thrown a RegionDestroyedException");
内容来源于网络,如有侵权,请联系作者删除!