Class CacheInfo
java.lang.Object
org.xmlresolver.cache.CacheInfo
Information about cached URIs.
URI patterns (regular expression) can be included or excluded from the
cache selectively. The
CacheInfo object provides the
parameters that will be applied when caching matching URIs.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanIs this pattern cached?final longHow many entries are allowed for this pattern?final longHow much disk space may entries for this pattern occupy?final longHow long are expired entries kept for this pattern?final longEntries older thanmaxAgewill expire.final StringThe pattern (regular expression) that this CacheInfo matches.final PatternThe compiled pattern. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
cache
public final boolean cacheIs this pattern cached? -
pattern
The pattern (regular expression) that this CacheInfo matches. -
uriPattern
The compiled pattern. -
deleteWait
public final long deleteWaitHow long are expired entries kept for this pattern? -
cacheSize
public final long cacheSizeHow many entries are allowed for this pattern? -
cacheSpace
public final long cacheSpaceHow much disk space may entries for this pattern occupy? -
maxAge
public final long maxAgeEntries older thanmaxAgewill expire.
-
-
Constructor Details
-
CacheInfo
Create an entry with default parameters.- Parameters:
pattern- The regular expression to match against.cache- Should this URI be included (true) or excluded (false) from the cache.- See Also:
-
CacheInfo
protected CacheInfo(String pattern, boolean cache, long deleteWait, long cacheSize, long cacheSpace, long maxAge) Create an entry with explicit parameters.- Parameters:
pattern- The regular expression to match against.cache- Should this URI be included (true) or excluded (false) from the cache.deleteWait- How long are expired entries kept for this pattern?cacheSize- How many entries are allowed for this pattern?cacheSpace- How much disk space may entries for this pattern occupy?maxAge- Entries older thanmaxAgewill expire.
-
-
Method Details
-
toString
-