KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > oscache > base > events > CacheMapAccessEventType


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.oscache.base.events;
6
7
8 /**
9  * This is an enumeration of the cache events that represent the
10  * various outcomes of cache accesses.
11  *
12  * @version $Revision: 1.1 $
13  * @author <a HREF="mailto:fbeauregard@pyxis-tech.com">Francois Beauregard</a>
14  */

15 public final class CacheMapAccessEventType {
16     /**
17      * Get an event type for a cache hit.
18      */

19     public static CacheMapAccessEventType HIT = new CacheMapAccessEventType();
20
21     /**
22      * Get an event type for a cache miss.
23      */

24     public static CacheMapAccessEventType MISS = new CacheMapAccessEventType();
25
26     /**
27      * Get an event type for when the data was found in the cache but was stale.
28      */

29     public static CacheMapAccessEventType STALE_HIT = new CacheMapAccessEventType();
30
31     /**
32      * Private constructor to ensure that no object of this type are
33      * created externally.
34      */

35     private CacheMapAccessEventType() {
36     }
37 }
38
Popular Tags