View Javadoc

1   package org.apache.jcs.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   */
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      //public final static int ELEMENT_EVENT_REMOVED = 7;
69      /***
70       * Element was requested from cache. Not sure we ever want to implement
71       * this.
72       */
73      //public final static int ELEMENT_EVENT_GET = 8;
74  }