|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
CacheEntryEventType.java | - | - | 100% | 100% |
|
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: 387 $ | |
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 final CacheEntryEventType ENTRY_ADDED = new CacheEntryEventType(); | |
22 | ||
23 | /** | |
24 | * Get an event type for an entry updated. | |
25 | */ | |
26 | public static final CacheEntryEventType ENTRY_UPDATED = new CacheEntryEventType(); | |
27 | ||
28 | /** | |
29 | * Get an event type for an entry flushed. | |
30 | */ | |
31 | public static final CacheEntryEventType ENTRY_FLUSHED = new CacheEntryEventType(); | |
32 | ||
33 | /** | |
34 | * Get an event type for an entry removed. | |
35 | */ | |
36 | public static final CacheEntryEventType ENTRY_REMOVED = new CacheEntryEventType(); | |
37 | ||
38 | /** | |
39 | * Get an event type for a group flush event. | |
40 | */ | |
41 | public static final CacheEntryEventType GROUP_FLUSHED = new CacheEntryEventType(); | |
42 | ||
43 | /** | |
44 | * Get an event type for a pattern flush event. | |
45 | */ | |
46 | public static final CacheEntryEventType PATTERN_FLUSHED = new CacheEntryEventType(); | |
47 | ||
48 | /** | |
49 | * Private constructor to ensure that no object of that type are | |
50 | * created externally. | |
51 | */ | |
52 | 36 | private CacheEntryEventType() { |
53 | } | |
54 | } |
|