Class JavaxCacheQueryCompilationCache

  • All Implemented Interfaces:
    java.io.Serializable, QueryCompilationCache

    public class JavaxCacheQueryCompilationCache
    extends java.lang.Object
    implements QueryCompilationCache, java.io.Serializable
    Query compilation cache using javax.cache for implementation.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Method to clear the cache.
      void close()
      Method to close the cache when no longer needed.
      boolean contains​(java.lang.String queryKey)
      Accessor for whether the specified query is in the cache
      void evict​(java.lang.String queryKey)
      Evict the query from the compilation cache.
      QueryCompilation get​(java.lang.String queryKey)
      Accessor for a (generic) compilation from the cache.
      boolean isEmpty()
      Accessor for whether the cache is empty.
      QueryCompilation put​(java.lang.String queryKey, QueryCompilation compilation)
      Method to put an object in the cache.
      int size()
      Accessor for the total number of compilations in the query cache.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cache

        private javax.cache.Cache<java.lang.String,​QueryCompilation> cache
        The cache to use.
    • Constructor Detail

      • JavaxCacheQueryCompilationCache

        public JavaxCacheQueryCompilationCache​(NucleusContext nucleusCtx)