01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.oscache.base.events;
06:
07: /**
08: * This is an enumeration of the cache events that represent the
09: * various outcomes of cache accesses.
10: *
11: * @version $Revision: 387 $
12: * @author <a href="mailto:fbeauregard@pyxis-tech.com">Francois Beauregard</a>
13: */
14: public final class CacheMapAccessEventType {
15: /**
16: * Get an event type for a cache hit.
17: */
18: public static final CacheMapAccessEventType HIT = new CacheMapAccessEventType();
19:
20: /**
21: * Get an event type for a cache miss.
22: */
23: public static final CacheMapAccessEventType MISS = new CacheMapAccessEventType();
24:
25: /**
26: * Get an event type for when the data was found in the cache but was stale.
27: */
28: public static final CacheMapAccessEventType STALE_HIT = new CacheMapAccessEventType();
29:
30: /**
31: * Private constructor to ensure that no object of this type are
32: * created externally.
33: */
34: private CacheMapAccessEventType() {
35: }
36: }
|