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

x33g5p2x  于2022-01-18 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(120)

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

Cache.logOnRemoveAllIfPinnedCache介绍

暂无

代码示例

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

/**
 * Removes all cached items.
 * Synchronization is handled within the method.
 * <p>
 * Caches which use synchronous replication can throw RemoteCacheException here if the replication to the cluster fails.
 * This exception should be caught in those circumstances.
 *
 * @throws IllegalStateException if the cache is not {@link Status#STATUS_ALIVE}
 */
public void removeAll(boolean doNotNotifyCacheReplicators) throws IllegalStateException, CacheException {
  checkStatus();
  compoundStore.removeAll();
  logOnRemoveAllIfPinnedCache();
  registeredEventListeners.notifyRemoveAll(doNotNotifyCacheReplicators);
}

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

/**
 * Removes all cached items.
 * Synchronization is handled within the method.
 * <p>
 * Caches which use synchronous replication can throw RemoteCacheException here if the replication to the cluster fails.
 * This exception should be caught in those circumstances.
 *
 * @throws IllegalStateException if the cache is not {@link Status#STATUS_ALIVE}
 */
public void removeAll(boolean doNotNotifyCacheReplicators) throws IllegalStateException, CacheException {
  checkStatus();
  compoundStore.removeAll();
  logOnRemoveAllIfPinnedCache();
  registeredEventListeners.notifyRemoveAll(doNotNotifyCacheReplicators);
}

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

/**
 * Removes all cached items.
 * Synchronization is handled within the method.
 * <p/>
 * Caches which use synchronous replication can throw RemoteCacheException here if the replication to the cluster fails.
 * This exception should be caught in those circumstances.
 *
 * @throws IllegalStateException if the cache is not {@link Status#STATUS_ALIVE}
 */
public void removeAll(boolean doNotNotifyCacheReplicators) throws IllegalStateException, CacheException {
  checkStatus();
  compoundStore.removeAll();
  logOnRemoveAllIfPinnedCache();
  registeredEventListeners.notifyRemoveAll(doNotNotifyCacheReplicators);
}

相关文章

Cache类方法