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

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

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

Ehcache.removeQuiet介绍

[英]Removes an net.sf.ehcache.Element from the Cache, without notifying listeners. This also removes it from any stores it may be in.
[中]移除一个网。旧金山。ehcache。元素,而不通知侦听器。这也会将其从任何存储中删除。

代码示例

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean removeQuiet(Serializable key) throws IllegalStateException {
  5. return underlyingCache.removeQuiet(key);
  6. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean removeQuiet(Object key) throws IllegalStateException {
  5. return underlyingCache.removeQuiet(key);
  6. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean removeQuiet(Serializable arg0) throws IllegalStateException {
  5. // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  6. Thread t = Thread.currentThread();
  7. ClassLoader prev = t.getContextClassLoader();
  8. t.setContextClassLoader(this.classLoader);
  9. try {
  10. return this.cache.removeQuiet(arg0);
  11. } finally {
  12. t.setContextClassLoader(prev);
  13. }
  14. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean removeQuiet(Object arg0) throws IllegalStateException {
  5. // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  6. Thread t = Thread.currentThread();
  7. ClassLoader prev = t.getContextClassLoader();
  8. t.setContextClassLoader(this.classLoader);
  9. try {
  10. return this.cache.removeQuiet(arg0);
  11. } finally {
  12. t.setContextClassLoader(prev);
  13. }
  14. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean removeQuiet(Serializable key) throws IllegalStateException {
  5. return underlyingCache.removeQuiet(key);
  6. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean removeQuiet(Object key) throws IllegalStateException {
  5. return underlyingCache.removeQuiet(key);
  6. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean removeQuiet(Serializable key) throws IllegalStateException {
  5. return underlyingCache.removeQuiet(key);
  6. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean removeQuiet(Object key) throws IllegalStateException {
  5. return underlyingCache.removeQuiet(key);
  6. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean removeQuiet(Serializable key) throws IllegalStateException {
  5. return underlyingCache.removeQuiet(key);
  6. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean removeQuiet(Object key) throws IllegalStateException {
  5. return underlyingCache.removeQuiet(key);
  6. }

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

  1. /**
  2. * Removes an {@link net.sf.ehcache.Element} from the Cache, without notifying listeners. This also removes it from any stores it may be
  3. * in.
  4. * <p/>
  5. *
  6. * @param key
  7. * the key to remove
  8. * @return true if the element was removed, false if it was not found in the cache
  9. * @throws IllegalStateException
  10. * if the cache is not {@link net.sf.ehcache.Status#STATUS_ALIVE}
  11. */
  12. public boolean removeQuiet(Serializable key) throws IllegalStateException {
  13. return cache.removeQuiet(key);
  14. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean removeQuiet(Serializable arg0) throws IllegalStateException {
  5. // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  6. Thread t = Thread.currentThread();
  7. ClassLoader prev = t.getContextClassLoader();
  8. t.setContextClassLoader(this.classLoader);
  9. try {
  10. return this.cache.removeQuiet(arg0);
  11. } finally {
  12. t.setContextClassLoader(prev);
  13. }
  14. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean removeQuiet(Serializable arg0) throws IllegalStateException {
  5. // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  6. Thread t = Thread.currentThread();
  7. ClassLoader prev = t.getContextClassLoader();
  8. t.setContextClassLoader(this.classLoader);
  9. try {
  10. return this.cache.removeQuiet(arg0);
  11. } finally {
  12. t.setContextClassLoader(prev);
  13. }
  14. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean removeQuiet(Object arg0) throws IllegalStateException {
  5. // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  6. Thread t = Thread.currentThread();
  7. ClassLoader prev = t.getContextClassLoader();
  8. t.setContextClassLoader(this.classLoader);
  9. try {
  10. return this.cache.removeQuiet(arg0);
  11. } finally {
  12. t.setContextClassLoader(prev);
  13. }
  14. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean removeQuiet(Serializable arg0) throws IllegalStateException {
  5. // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  6. Thread t = Thread.currentThread();
  7. ClassLoader prev = t.getContextClassLoader();
  8. t.setContextClassLoader(this.classLoader);
  9. try {
  10. return this.cache.removeQuiet(arg0);
  11. } finally {
  12. t.setContextClassLoader(prev);
  13. }
  14. }

代码示例来源:origin: org.apache.portals.jetspeed-2/jetspeed-cm

  1. public boolean removeQuiet(Object key)
  2. {
  3. Element element = ehcache.get(key);
  4. if (element == null)
  5. return false;
  6. return ehcache.removeQuiet(key);
  7. }

代码示例来源:origin: org.apache.portals.jetspeed-2/jetspeed-cm

  1. public boolean removeQuiet(Object key)
  2. {
  3. Element element = ehcache.get(key);
  4. refList.remove(key);
  5. if (element == null)
  6. return false;
  7. return ehcache.removeQuiet(key);
  8. }

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

  1. public boolean removeQuiet(Object key) throws IllegalStateException {
  2. return self().removeQuiet(key);
  3. }

代码示例来源:origin: rtyley/mini-git-server

  1. public boolean removeQuiet(Object key) throws IllegalStateException {
  2. return self().removeQuiet(key);
  3. }

代码示例来源:origin: org.terracotta/ehcache-probe

  1. @RestMethod(required = { PARAM_CACHE, PARAM_KEY })
  2. public void removeFromCache(RestRequest request, RestResponse response)
  3. throws IOException {
  4. String cacheName = request.getParameter(PARAM_CACHE);
  5. String key = request.getParameter(PARAM_KEY);
  6. Ehcache cache = cacheManager.getEhcache(cacheName);
  7. if (cache != null) {
  8. if (cache.removeQuiet(key)) {
  9. response.value("removed");
  10. } else {
  11. response.value("key not found");
  12. }
  13. }
  14. }

相关文章

Ehcache类方法