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 all the possible events that may occur on a cache entry or
09: * collection of cache entries.<p>
10: * There is a corresponding interface {@link CacheEntryEventListener} for
11: * handling these events.
12: *
13: * @version $Revision: 387 $
14: * @author <a href="mailto:fbeauregard@pyxis-tech.com">Francois Beauregard</a>
15: */
16: public final class CacheEntryEventType {
17: /**
18: * Get an event type for an entry added.
19: */
20: public static final CacheEntryEventType ENTRY_ADDED = new CacheEntryEventType();
21:
22: /**
23: * Get an event type for an entry updated.
24: */
25: public static final CacheEntryEventType ENTRY_UPDATED = new CacheEntryEventType();
26:
27: /**
28: * Get an event type for an entry flushed.
29: */
30: public static final CacheEntryEventType ENTRY_FLUSHED = new CacheEntryEventType();
31:
32: /**
33: * Get an event type for an entry removed.
34: */
35: public static final CacheEntryEventType ENTRY_REMOVED = new CacheEntryEventType();
36:
37: /**
38: * Get an event type for a group flush event.
39: */
40: public static final CacheEntryEventType GROUP_FLUSHED = new CacheEntryEventType();
41:
42: /**
43: * Get an event type for a pattern flush event.
44: */
45: public static final CacheEntryEventType PATTERN_FLUSHED = new CacheEntryEventType();
46:
47: /**
48: * Private constructor to ensure that no object of that type are
49: * created externally.
50: */
51: private CacheEntryEventType() {
52: }
53: }
|