Package org.zkoss.web.util.resource
Class ResourceCache<V>
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,,Object> org.zkoss.util.Cache<Object,Object>
public class ResourceCache<V>
extends org.zkoss.util.resource.ResourceCache<org.zkoss.web.util.resource.ResourceInfo,V>
Used to cache Servlet resources.
It is used with
ResourceCaches and ResourceLoader.- Since:
- 6.0.0
- Author:
- tomyeh
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.zkoss.util.CacheMap
org.zkoss.util.CacheMap.Value<V extends Object> -
Field Summary
Fields inherited from class org.zkoss.util.resource.ResourceCache
_loaderFields inherited from class org.zkoss.util.CacheMap
EXPUNGE_CONTINUE, EXPUNGE_NO, EXPUNGE_STOP, EXPUNGE_YESFields inherited from interface org.zkoss.util.Cache
DEFAULT_LIFETIME, DEFAULT_MAX_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionResourceCache(ResourceLoader<V> loader) Constructor.ResourceCache(ResourceLoader<V> loader, int initsz) Constructor. -
Method Summary
Methods inherited from class org.zkoss.util.resource.ResourceCache
clear, get, getCheckPeriod, getLoader, put, remove, setCheckPeriodMethods inherited from class org.zkoss.util.CacheMap
canExpunge, clone, containsKey, containsKeyWithoutExpunge, containsValue, entrySet, equals, expunge, getLifetime, getMaxSize, getWithoutExpunge, hashCode, isEmpty, isEmptyWithoutExpunge, keySet, onExpunge, putAll, setLifetime, setMaxSize, shallExpunge, size, sizeWithoutExpunge, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ResourceCache
Constructor.- Parameters:
loader- the loader to load resource
-
ResourceCache
Constructor.- Parameters:
loader- the loader to load resourceinitsz- the initial size of the map
-