KickJava   Java API By Example, From Geeks To Geeks.

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


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 all the possible events that may occur on a cache entry or
10  * collection of cache entries.<p>
11  * There is a corresponding interface {@link CacheEntryEventListener} for
12  * handling these events.
13  *
14  * @version $Revision: 1.1 $
15  * @author <a HREF="mailto:fbeauregard@pyxis-tech.com">Francois Beauregard</a>
16  */

17 public final class CacheEntryEventType {
18     /**
19      * Get an event type for an entry added.
20      */

21     public static CacheEntryEventType ENTRY_ADDED = new CacheEntryEventType();
22
23     /**
24      * Get an event type for an entry updated.
25      */

26     public static CacheEntryEventType ENTRY_UPDATED = new CacheEntryEventType();
27
28     /**
29      * Get an event type for an entry flushed.
30      */

31     public static CacheEntryEventType ENTRY_FLUSHED = new CacheEntryEventType();
32
33     /**
34      * Get an event type for an entry removed.
35      */

36     public static CacheEntryEventType ENTRY_REMOVED = new CacheEntryEventType();
37
38     /**
39      * Get an event type for a group flush event.
40      */

41     public static CacheEntryEventType GROUP_FLUSHED = new CacheEntryEventType();
42
43     /**
44      * Get an event type for a pattern flush event.
45      */

46     public static CacheEntryEventType PATTERN_FLUSHED = new CacheEntryEventType();
47
48     /**
49      * Private constructor to ensure that no object of that type are
50      * created externally.
51      */

52     private CacheEntryEventType() {
53     }
54 }
55
Popular Tags