1 package org.apache.jcs.engine.control.event.behavior;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 /***
23 * This describes the events that an item can encounter.
24 *
25 */
26 public interface IElementEventConstants
27 {
28
29 /***
30 * Background expiration
31 */
32 public final static int ELEMENT_EVENT_EXCEEDED_MAXLIFE_BACKGROUND = 0;
33
34 /***
35 * Expiration discovered on request
36 */
37 public final static int ELEMENT_EVENT_EXCEEDED_MAXLIFE_ONREQUEST = 1;
38
39 /***
40 * Background expiration
41 */
42 public final static int ELEMENT_EVENT_EXCEEDED_IDLETIME_BACKGROUND = 2;
43
44 /***
45 * Expiration discovered on request
46 */
47 public final static int ELEMENT_EVENT_EXCEEDED_IDLETIME_ONREQUEST = 3;
48
49 /***
50 * Moving from memory to disk (what if no disk?)
51 */
52 public final static int ELEMENT_EVENT_SPOOLED_DISK_AVAILABLE = 4;
53
54 /***
55 * Moving from memory to disk (what if no disk?)
56 */
57 public final static int ELEMENT_EVENT_SPOOLED_DISK_NOT_AVAILABLE = 5;
58
59 /***
60 * Moving from memory to disk, but item is not spoolable
61 */
62 public final static int ELEMENT_EVENT_SPOOLED_NOT_ALLOWED = 6;
63
64 /***
65 * Removed activley by a remove command. (Could distinguish between local
66 * and remote)
67 */
68
69 /***
70 * Element was requested from cache. Not sure we ever want to implement
71 * this.
72 */
73
74 }