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

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

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

Cache.getCacheExceptionHandler介绍

[英]Gets the ExceptionHandler on this Cache, or null if there isn't one.

The ExceptionHandler is only used if this Cache's methods are accessed using net.sf.ehcache.exceptionhandler.ExceptionHandlingDynamicCacheProxy.
[中]获取此缓存上的ExceptionHandler,如果没有,则为null。
ExceptionHandler仅在使用net访问此缓存的方法时使用。旧金山。ehcache。例外处理程序。例外处理DynamicCacheProxy。

代码示例

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

/**
 * Sets an ExceptionHandler on the Cache. If one is already set, it is overwritten.
 * <p>
 * The ExceptionHandler is only used if this Cache's methods are accessed using
 * {@link net.sf.ehcache.exceptionhandler.ExceptionHandlingDynamicCacheProxy}.
 *
 * @see net.sf.ehcache.exceptionhandler.ExceptionHandlingDynamicCacheProxy
 */
public void setCacheExceptionHandler(CacheExceptionHandler cacheExceptionHandler) {
  CacheExceptionHandler oldValue = getCacheExceptionHandler();
  this.cacheExceptionHandler = cacheExceptionHandler;
  firePropertyChange("CacheExceptionHandler", oldValue, cacheExceptionHandler);
}

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

/**
 * Sets an ExceptionHandler on the Cache. If one is already set, it is overwritten.
 * <p>
 * The ExceptionHandler is only used if this Cache's methods are accessed using
 * {@link net.sf.ehcache.exceptionhandler.ExceptionHandlingDynamicCacheProxy}.
 *
 * @see net.sf.ehcache.exceptionhandler.ExceptionHandlingDynamicCacheProxy
 */
public void setCacheExceptionHandler(CacheExceptionHandler cacheExceptionHandler) {
  CacheExceptionHandler oldValue = getCacheExceptionHandler();
  this.cacheExceptionHandler = cacheExceptionHandler;
  firePropertyChange("CacheExceptionHandler", oldValue, cacheExceptionHandler);
}

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

/**
 * Sets an ExceptionHandler on the Cache. If one is already set, it is overwritten.
 * <p/>
 * The ExceptionHandler is only used if this Cache's methods are accessed using
 * {@link net.sf.ehcache.exceptionhandler.ExceptionHandlingDynamicCacheProxy}.
 *
 * @see net.sf.ehcache.exceptionhandler.ExceptionHandlingDynamicCacheProxy
 */
public void setCacheExceptionHandler(CacheExceptionHandler cacheExceptionHandler) {
  CacheExceptionHandler oldValue = getCacheExceptionHandler();
  this.cacheExceptionHandler = cacheExceptionHandler;
  firePropertyChange("CacheExceptionHandler", oldValue, cacheExceptionHandler);
}

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

/**
 * Sets an ExceptionHandler on the Cache. If one is already set, it is overwritten.
 * <p/>
 * The ExceptionHandler is only used if this Cache's methods are accessed using
 * {@link net.sf.ehcache.exceptionhandler.ExceptionHandlingDynamicCacheProxy}.
 *
 * @see net.sf.ehcache.exceptionhandler.ExceptionHandlingDynamicCacheProxy
 */
public void setCacheExceptionHandler(CacheExceptionHandler cacheExceptionHandler) {
  CacheExceptionHandler oldValue = getCacheExceptionHandler();
  this.cacheExceptionHandler = cacheExceptionHandler;
  firePropertyChange("CacheExceptionHandler", oldValue, cacheExceptionHandler);
}

相关文章

Cache类方法