01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.caching;
17:
18: import java.util.Map;
19:
20: /** An entry in FeatureCache. Holds access statistics associated with a Feature in the cache.
21: * Interface copied from javax.cache.CacheEntry
22: * @see http://jsr-107-interest.dev.java.net/javadoc/javax/cache/Cache.html
23: *
24: * @author Christophe Rousson, SoC 2007, CRG-ULAVAL
25: *
26: */
27: public interface CacheEntry extends Map.Entry {
28: long getCost();
29:
30: long getCreationTime();
31:
32: long getExpirationTime();
33:
34: int getHits();
35:
36: long getLastAccessTime();
37:
38: long getLastUpdateTime();
39:
40: long getVersion();
41:
42: boolean isValid();
43: }
|