| java.lang.Object net.sf.ehcache.exceptionhandler.CountingExceptionHandler
CountingExceptionHandler | public class CountingExceptionHandler implements CacheExceptionHandler(Code) | | A test handler, used to test the Exception handling mechanism
author: Greg Luck version: $Id: CountingExceptionHandler.java 529 2007-08-05 09:11:32Z gregluck $ |
Inner Class :public static class HandledException | |
HANDLED_EXCEPTIONS | final public static List HANDLED_EXCEPTIONS(Code) | | the list of handled exceptions, static so you can get them without a reference
|
onException | public void onException(Ehcache ehcache, Object key, Exception exception)(Code) | | Called if an Exception occurs in a Cache method. This method is not called
if an Error occurs.
Parameters: ehcache - the cache in which the Exception occurred Parameters: key - the key used in the operation, or null if the operation does not use a key Parameters: exception - the exception caught |
resetCounters | public static void resetCounters()(Code) | | Clear counter
|
|
|