Class JavaxCacheQueryDatastoreCompilationCache

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.cache.Cache<java.lang.String,​java.lang.Object> cache
      The cache to use.
      private static long serialVersionUID  
    • 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.
      java.lang.Object get​(java.lang.String queryKey)
      Accessor for a (generic) compilation from the cache.
      boolean isEmpty()
      Accessor for whether the cache is empty.
      java.lang.Object put​(java.lang.String queryKey, java.lang.Object 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