1 package org.apache.commons.jcs3.engine.control.event.behavior;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22 /**
23 * This describes the events that an item can encounter.
24 */
25 public enum ElementEventType
26 {
27 /** Background expiration */
28 EXCEEDED_MAXLIFE_BACKGROUND,
29
30 /*** Expiration discovered on request */
31 EXCEEDED_MAXLIFE_ONREQUEST,
32
33 /** Background expiration */
34 EXCEEDED_IDLETIME_BACKGROUND,
35
36 /** Expiration discovered on request */
37 EXCEEDED_IDLETIME_ONREQUEST,
38
39 /** Moving from memory to disk (what if no disk?) */
40 SPOOLED_DISK_AVAILABLE,
41
42 /** Moving from memory to disk (what if no disk?) */
43 SPOOLED_DISK_NOT_AVAILABLE,
44
45 /** Moving from memory to disk, but item is not spoolable */
46 SPOOLED_NOT_ALLOWED //,
47
48 /** Removed actively by a remove command. (Could distinguish between local and remote) */
49 //REMOVED,
50 /**
51 * Element was requested from cache. Not sure we ever want to implement this.
52 */
53 //GET
54 }