本文整理了Java中net.sf.ehcache.Cache.logOnRemoveAllIfPinnedCache()
方法的一些代码示例,展示了Cache.logOnRemoveAllIfPinnedCache()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cache.logOnRemoveAllIfPinnedCache()
方法的具体详情如下:
包路径:net.sf.ehcache.Cache
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!