~ubuntu-branches/ubuntu/trusty/ehcache/trusty

« back to all changes in this revision

Viewing changes to net/sf/ehcache/exceptionhandler/CacheExceptionHandler.java

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2008-07-14 02:08:53 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080714020853-37uz6uzh6mc5mcgx
Tags: 1.5.0-1
* New upstream release
* Add libjgroups-java to Build-Depends-Indep
* Bump Standards-Version to 3.8.0
* debian/copyright: remove the full text of Apache 2.0 license, as now
  is included in common licenses

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import net.sf.ehcache.Ehcache;
20
20
 
21
21
/**
22
 
 * A handler which may be registered with an Ehcache, to handle exception on Cache operations.
 
22
 * A handler which may be registered with an Ehcache, to handle exceptions on Cache operations.
23
23
 * <p/>
24
24
 * Handlers may be registered at configuration time in ehcache.xml, using a CacheExceptionHandlerFactory, or
25
25
 *  set at runtime (a strategy).
38
38
 * </ul>
39
39
 *
40
40
 * @author <a href="mailto:gluck@gregluck.com">Greg Luck</a>
41
 
 * @version $Id: CacheExceptionHandler.java 525 2007-07-31 22:41:54Z gregluck $
 
41
 * @version $Id: CacheExceptionHandler.java 604 2008-04-25 02:20:57Z gregluck $
42
42
 */
43
43
public interface CacheExceptionHandler {
44
44
 
48
48
     *
49
49
     * @param ehcache   the cache in which the Exception occurred
50
50
     * @param key       the key used in the operation, or null if the operation does not use a key or the key was null
51
 
     * @param exception the exception caught
 
51
     * @param exception the Exception caught. 
52
52
     */
53
53
    void onException(Ehcache ehcache, Object key, Exception exception);
54
54
}