net.sf.ehcache.Ehcache.setDisabled()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(131)

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

Ehcache.setDisabled介绍

[英]Disables or enables this cache. This call overrides the previous value of disabled.
[中]禁用或启用此缓存。此调用覆盖先前的禁用值。

代码示例

代码示例来源:origin: spring-projects/spring-framework

rawCache.setDisabled(true);

代码示例来源:origin: org.springframework/spring-context-support

rawCache.setDisabled(true);

代码示例来源:origin: net.sf.ehcache/ehcache

/**
 * {@inheritDoc}
 */
public void setDisabled(boolean disabled) {
  underlyingCache.setDisabled(disabled);
}

代码示例来源:origin: net.sf.ehcache/ehcache

/**
* {@inheritDoc}
*/
public void setDisabled(boolean arg0) {
  // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  Thread t = Thread.currentThread();
  ClassLoader prev = t.getContextClassLoader();
  t.setContextClassLoader(this.classLoader);
  try {
    this.cache.setDisabled(arg0);
  } finally {
    t.setContextClassLoader(prev);
  }
}

代码示例来源:origin: net.sf.ehcache/ehcache

/**
 * {@inheritDoc}
 */
@Override
public void setEnabled(boolean enabled) {
  try {
    cache.setDisabled(!enabled);
  } catch (RuntimeException e) {
    throw Utils.newPlainException(e);
  }
}

代码示例来源:origin: net.sf.ehcache/ehcache

/**
   * {@inheritDoc}
   */
  public void setEnabled(boolean enabled) {
    for (String cacheName : getCacheNames()) {
      Ehcache cache = cacheManager.getEhcache(cacheName);
      if (cache != null) {
        cache.setDisabled(!enabled);
      }
    }
  }
}

代码示例来源:origin: net.sf.ehcache/ehcache-explicitlocking

/**
 * Disables or enables this cache. This call overrides the previous value of disabled, even if the <code>net.sf.ehcache.disabled</code>
 * system property is set
 * <p/>
 * 
 * @param disabled
 *            true if you wish to disable, false to enable
 * @see #isDisabled()
 */
public void setDisabled(boolean disabled) {
  cache.setDisabled(disabled);
}

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

/**
 * {@inheritDoc}
 */
public void setDisabled(boolean disabled) {
  underlyingCache.setDisabled(disabled);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

/**
 * {@inheritDoc}
 */
public void setDisabled(boolean disabled) {
  underlyingCache.setDisabled(disabled);
}

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

/**
 * {@inheritDoc}
 */
public void setDisabled(boolean disabled) {
  underlyingCache.setDisabled(disabled);
}

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

/**
* {@inheritDoc}
*/
public void setDisabled(boolean arg0) {
  // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  Thread t = Thread.currentThread();
  ClassLoader prev = t.getContextClassLoader();
  t.setContextClassLoader(this.classLoader);
  try {
    this.cache.setDisabled(arg0);
  } finally {
    t.setContextClassLoader(prev);
  }
}

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

/**
* {@inheritDoc}
*/
public void setDisabled(boolean arg0) {
  // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  Thread t = Thread.currentThread();
  ClassLoader prev = t.getContextClassLoader();
  t.setContextClassLoader(this.classLoader);
  try {
    this.cache.setDisabled(arg0);
  } finally {
    t.setContextClassLoader(prev);
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

/**
* {@inheritDoc}
*/
public void setDisabled(boolean arg0) {
  // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  Thread t = Thread.currentThread();
  ClassLoader prev = t.getContextClassLoader();
  t.setContextClassLoader(this.classLoader);
  try {
    this.cache.setDisabled(arg0);
  } finally {
    t.setContextClassLoader(prev);
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

/**
 * {@inheritDoc}
 */
public void setEnabled(boolean enabled) {
  try {
    cache.setDisabled(!enabled);
  } catch (RuntimeException e) {
    throw Utils.newPlainException(e);
  }
}

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

/**
 * {@inheritDoc}
 */
@Override
public void setEnabled(boolean enabled) {
  try {
    cache.setDisabled(!enabled);
  } catch (RuntimeException e) {
    throw Utils.newPlainException(e);
  }
}

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

/**
 * {@inheritDoc}
 */
@Override
public void setEnabled(boolean enabled) {
  try {
    cache.setDisabled(!enabled);
  } catch (RuntimeException e) {
    throw Utils.newPlainException(e);
  }
}

代码示例来源:origin: com.madgag/mini-git-server-server

public void setDisabled(boolean disabled) {
 self().setDisabled(disabled);
}

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

/**
   * {@inheritDoc}
   */
  public void setEnabled(boolean enabled) {
    for (String cacheName : getCacheNames()) {
      Ehcache cache = cacheManager.getEhcache(cacheName);
      if (cache != null) {
        cache.setDisabled(!enabled);
      }
    }
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

/**
   * {@inheritDoc}
   */
  public void setEnabled(boolean enabled) {
    for (String cacheName : getCacheNames()) {
      Ehcache cache = cacheManager.getEhcache(cacheName);
      if (cache != null) {
        cache.setDisabled(!enabled);
      }
    }
  }
}

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

/**
   * {@inheritDoc}
   */
  public void setEnabled(boolean enabled) {
    for (String cacheName : getCacheNames()) {
      Ehcache cache = cacheManager.getEhcache(cacheName);
      if (cache != null) {
        cache.setDisabled(!enabled);
      }
    }
  }
}

相关文章

Ehcache类方法