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

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

本文整理了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

/**
 * 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);
}

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

/**
 * 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);
}

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

regionRoot.setResident(true);

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

regionRoot.setResident(true);

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

added.setResident(true);
return added;

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

added.setResident(true);
return added;

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

newRoot.setResident(true);

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

newRoot.setResident(true);
establishInternalNodes();

相关文章