org.apache.geode.cache.Region.localInvalidateRegion()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(91)

本文整理了Java中org.apache.geode.cache.Region.localInvalidateRegion方法的一些代码示例,展示了Region.localInvalidateRegion的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Region.localInvalidateRegion方法的具体详情如下:
包路径:org.apache.geode.cache.Region
类名称:Region
方法名:localInvalidateRegion

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");

相关文章

微信公众号

最新文章

更多