org.jboss.cache.Node.setResident()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(239)

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

Node.setResident介绍

暂无

代码示例

代码示例来源:origin: org.hibernate/hibernate-jbosscache

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

代码示例来源:origin: org.hibernate/hibernate-jbosscache2

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

代码示例来源:origin: org.hibernate/hibernate-jbosscache

  1. regionRoot.setResident(true);

代码示例来源:origin: org.hibernate/hibernate-jbosscache2

  1. regionRoot.setResident(true);

代码示例来源:origin: org.hibernate/hibernate-jbosscache2

  1. added.setResident(true);
  2. return added;

代码示例来源:origin: org.hibernate/hibernate-jbosscache

  1. added.setResident(true);
  2. return added;

代码示例来源:origin: org.hibernate/hibernate-jbosscache2

  1. newRoot.setResident(true);

代码示例来源:origin: org.hibernate/hibernate-jbosscache

  1. newRoot.setResident(true);
  2. establishInternalNodes();

相关文章