Package org.xmlresolver.cache
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 boolean
Is this pattern cached?final long
How many entries are allowed for this pattern?final long
How much disk space may entries for this pattern occupy?final long
How long are expired entries kept for this pattern?final long
Entries older thanmaxAge
will expire.final String
The pattern (regular expression) that this CacheInfo matches.final Pattern
The 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 thanmaxAge
will 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 thanmaxAge
will expire.
-
-
Method Details