Class CacheInfo

java.lang.Object
org.xmlresolver.cache.CacheInfo

public class CacheInfo extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    final 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 than maxAge will expire.
    final String
    The pattern (regular expression) that this CacheInfo matches.
    final Pattern
    The compiled pattern.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CacheInfo(String pattern, boolean cache)
    Create an entry with default parameters.
    protected
    CacheInfo(String pattern, boolean cache, long deleteWait, long cacheSize, long cacheSpace, long maxAge)
    Create an entry with explicit parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • cache

      public final boolean cache
      Is this pattern cached?
    • pattern

      public final String pattern
      The pattern (regular expression) that this CacheInfo matches.
    • uriPattern

      public final Pattern uriPattern
      The compiled pattern.
    • deleteWait

      public final long deleteWait
      How long are expired entries kept for this pattern?
    • cacheSize

      public final long cacheSize
      How many entries are allowed for this pattern?
    • cacheSpace

      public final long cacheSpace
      How much disk space may entries for this pattern occupy?
    • maxAge

      public final long maxAge
      Entries older than maxAge will expire.
  • Constructor Details

    • CacheInfo

      protected CacheInfo(String pattern, boolean cache)
      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 than maxAge will expire.
  • Method Details