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

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

本文整理了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

/**
 * {@inheritDoc}
 */
public boolean removeQuiet(Serializable key) throws IllegalStateException {
  return underlyingCache.removeQuiet(key);
}

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

/**
 * {@inheritDoc}
 */
public boolean removeQuiet(Object key) throws IllegalStateException {
  return underlyingCache.removeQuiet(key);
}

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

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

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

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

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

/**
 * {@inheritDoc}
 */
public boolean removeQuiet(Serializable key) throws IllegalStateException {
  return underlyingCache.removeQuiet(key);
}

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

/**
 * {@inheritDoc}
 */
public boolean removeQuiet(Object key) throws IllegalStateException {
  return underlyingCache.removeQuiet(key);
}

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

/**
 * {@inheritDoc}
 */
public boolean removeQuiet(Serializable key) throws IllegalStateException {
  return underlyingCache.removeQuiet(key);
}

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

/**
 * {@inheritDoc}
 */
public boolean removeQuiet(Object key) throws IllegalStateException {
  return underlyingCache.removeQuiet(key);
}

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

/**
 * {@inheritDoc}
 */
public boolean removeQuiet(Serializable key) throws IllegalStateException {
  return underlyingCache.removeQuiet(key);
}

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

/**
 * {@inheritDoc}
 */
public boolean removeQuiet(Object key) throws IllegalStateException {
  return underlyingCache.removeQuiet(key);
}

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

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

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

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

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

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

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

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

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

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

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

public boolean removeQuiet(Object key)
{
  Element element = ehcache.get(key);
  if (element == null)
    return false;
  return ehcache.removeQuiet(key);
}

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

public boolean removeQuiet(Object key)
{
  Element element = ehcache.get(key);
  refList.remove(key);
  if (element == null)
    return false;
  return ehcache.removeQuiet(key);
}

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

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

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

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

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

@RestMethod(required = { PARAM_CACHE, PARAM_KEY })
public void removeFromCache(RestRequest request, RestResponse response)
    throws IOException {
  String cacheName = request.getParameter(PARAM_CACHE);
  String key = request.getParameter(PARAM_KEY);
  Ehcache cache = cacheManager.getEhcache(cacheName);
  if (cache != null) {
    if (cache.removeQuiet(key)) {
      response.value("removed");
    } else {
      response.value("key not found");
    }
  }
}

相关文章

Ehcache类方法