Class XPathQueryCacheLoader

java.lang.Object
org.apache.jmeter.util.XPathQueryCacheLoader
All Implemented Interfaces:
com.github.benmanes.caffeine.cache.AsyncCacheLoader<org.apache.commons.lang3.tuple.ImmutablePair<String,String>,net.sf.saxon.s9api.XPathExecutable>, com.github.benmanes.caffeine.cache.CacheLoader<org.apache.commons.lang3.tuple.ImmutablePair<String,String>,net.sf.saxon.s9api.XPathExecutable>

public class XPathQueryCacheLoader extends Object implements com.github.benmanes.caffeine.cache.CacheLoader<org.apache.commons.lang3.tuple.ImmutablePair<String,String>,net.sf.saxon.s9api.XPathExecutable>
load method is called when the key composed of namespaces + xPathQuery is not in the cache. Return the compiled XPathQuery with the associated namespaces.
  • Constructor Details

    • XPathQueryCacheLoader

      public XPathQueryCacheLoader()
  • Method Details

    • load

      public net.sf.saxon.s9api.XPathExecutable load(org.apache.commons.lang3.tuple.ImmutablePair<String,String> key) throws Exception
      Specified by:
      load in interface com.github.benmanes.caffeine.cache.CacheLoader<org.apache.commons.lang3.tuple.ImmutablePair<String,String>,net.sf.saxon.s9api.XPathExecutable>
      Throws:
      Exception