本文整理了Java中net.sf.ehcache.Cache.notifyRemoveInternalListeners()
方法的一些代码示例,展示了Cache.notifyRemoveInternalListeners()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cache.notifyRemoveInternalListeners()
方法的具体详情如下:
包路径:net.sf.ehcache.Cache
类名称:Cache
方法名:notifyRemoveInternalListeners
暂无
代码示例来源:origin: net.sf.ehcache/ehcache
for (Object key : keys) {
Element syntheticElement = new Element(key, null);
notifyRemoveInternalListeners(key, false, notifyListeners, doNotNotifyCacheReplicators, syntheticElement);
代码示例来源:origin: net.sf.ehcache/ehcache
} catch (CacheWriterManagerException e) {
if (configuration.getCacheWriterConfiguration().getNotifyListenersOnException()) {
notifyRemoveInternalListeners(key, expiry, notifyListeners, doNotNotifyCacheReplicators,
elementFromStore);
notifyRemoveInternalListeners(key, expiry, notifyListeners, doNotNotifyCacheReplicators,
elementFromStore);
代码示例来源:origin: net.sf.ehcache/ehcache
/**
* {@inheritDoc}
*/
public boolean removeElement(Element element) throws NullPointerException {
checkStatus();
checkCASOperationSupported();
if (element.getObjectKey() == null) {
throw new NullPointerException();
}
if (disabled) {
return false;
}
removeElementObserver.begin();
// this guard currently ensures reasonable behavior on expiring elements
getQuiet(element.getObjectKey());
Element result = compoundStore.removeElement(element, elementValueComparator);
removeElementObserver.end(result==null?RemoveElementOutcome.FAILURE :RemoveElementOutcome.SUCCESS);
// FIXME shouldn't this be done only if result != null
notifyRemoveInternalListeners(element.getObjectKey(), false, true, false, result);
return result != null;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache
for (Object key : keys) {
Element syntheticElement = new Element(key, null);
notifyRemoveInternalListeners(key, false, notifyListeners, doNotNotifyCacheReplicators, syntheticElement);
代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache
for (Object key : keys) {
Element syntheticElement = new Element(key, null);
notifyRemoveInternalListeners(key, false, notifyListeners, doNotNotifyCacheReplicators, syntheticElement);
代码示例来源:origin: net.sf.ehcache.internal/ehcache-core
for (Object key : keys) {
Element syntheticElement = new Element(key, null);
notifyRemoveInternalListeners(key, false, notifyListeners, doNotNotifyCacheReplicators, syntheticElement);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache
/**
* {@inheritDoc}
*/
public boolean removeElement(Element element) throws NullPointerException {
checkStatus();
checkCASOperationSupported();
if (element.getObjectKey() == null) {
throw new NullPointerException();
}
if (disabled) {
return false;
}
// this guard currently ensures reasonable behavior on expiring elements
getQuiet(element.getObjectKey());
Element result = compoundStore.removeElement(element, elementValueComparator);
// FIXME shouldn't this be done only if result != null
notifyRemoveInternalListeners(element.getObjectKey(), false, true, false, result);
return result != null;
}
代码示例来源:origin: net.sf.ehcache.internal/ehcache-core
} catch (CacheWriterManagerException e) {
if (configuration.getCacheWriterConfiguration().getNotifyListenersOnException()) {
notifyRemoveInternalListeners(key, expiry, notifyListeners, doNotNotifyCacheReplicators,
elementFromStore);
notifyRemoveInternalListeners(key, expiry, notifyListeners, doNotNotifyCacheReplicators,
elementFromStore);
代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache
} catch (CacheWriterManagerException e) {
if (configuration.getCacheWriterConfiguration().getNotifyListenersOnException()) {
notifyRemoveInternalListeners(key, expiry, notifyListeners, doNotNotifyCacheReplicators,
elementFromStore);
notifyRemoveInternalListeners(key, expiry, notifyListeners, doNotNotifyCacheReplicators,
elementFromStore);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache
} catch (CacheWriterManagerException e) {
if (configuration.getCacheWriterConfiguration().getNotifyListenersOnException()) {
notifyRemoveInternalListeners(key, expiry, notifyListeners, doNotNotifyCacheReplicators,
elementFromStore);
notifyRemoveInternalListeners(key, expiry, notifyListeners, doNotNotifyCacheReplicators,
elementFromStore);
代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache
/**
* {@inheritDoc}
*/
public boolean removeElement(Element element) throws NullPointerException {
checkStatus();
checkCASOperationSupported();
if (element.getObjectKey() == null) {
throw new NullPointerException();
}
if (disabled) {
return false;
}
removeElementObserver.begin();
// this guard currently ensures reasonable behavior on expiring elements
getQuiet(element.getObjectKey());
Element result = compoundStore.removeElement(element, elementValueComparator);
removeElementObserver.end(result==null?RemoveElementOutcome.FAILURE :RemoveElementOutcome.SUCCESS);
// FIXME shouldn't this be done only if result != null
notifyRemoveInternalListeners(element.getObjectKey(), false, true, false, result);
return result != null;
}
代码示例来源:origin: net.sf.ehcache.internal/ehcache-core
/**
* {@inheritDoc}
*/
public boolean removeElement(Element element) throws NullPointerException {
checkStatus();
checkCASOperationSupported();
if (element.getObjectKey() == null) {
throw new NullPointerException();
}
if (disabled) {
return false;
}
removeElementObserver.begin();
// this guard currently ensures reasonable behavior on expiring elements
getQuiet(element.getObjectKey());
Element result = compoundStore.removeElement(element, elementValueComparator);
removeElementObserver.end(result==null?RemoveElementOutcome.FAILURE :RemoveElementOutcome.SUCCESS);
// FIXME shouldn't this be done only if result != null
notifyRemoveInternalListeners(element.getObjectKey(), false, true, false, result);
return result != null;
}
内容来源于网络,如有侵权,请联系作者删除!