Interface StoreCache

  • All Superinterfaces:
    jakarta.persistence.Cache
    All Known Implementing Classes:
    StoreCacheImpl

    public interface StoreCache
    extends jakarta.persistence.Cache
    Represents the L2 cache over the data store.
    Since:
    0.4.1
    Author:
    Abe White
    • Method Detail

      • contains

        boolean contains​(Class cls,
                         Object oid)
        Whether the cache contains data for the given oid.
        Specified by:
        contains in interface jakarta.persistence.Cache
      • containsAll

        boolean containsAll​(Class cls,
                            Object... oids)
        Whether the cache contains data for the given oids.
      • containsAll

        boolean containsAll​(Class cls,
                            Collection oids)
        Whether the cache contains data for the given oids.
      • pin

        void pin​(Class cls,
                 Object oid)
        Pin the data for the given oid to the cache.
      • pinAll

        void pinAll​(Class cls,
                    Object... oids)
        Pin the data for the given oids to the cache.
      • pinAll

        void pinAll​(Class cls,
                    Collection oids)
        Pin the data for the given oids to the cache.
      • unpin

        void unpin​(Class cls,
                   Object oid)
        Unpin the data for the given oid from the cache.
      • unpinAll

        void unpinAll​(Class cls,
                      Object... oids)
        Unpin the data for the given oids from the cache.
      • unpinAll

        void unpinAll​(Class cls,
                      Collection oids)
        Unpin the data for the given oids from the cache.
      • evict

        void evict​(Class cls,
                   Object oid)
        Remove data for the given oid from the cache.
        Specified by:
        evict in interface jakarta.persistence.Cache
      • evictAll

        void evictAll​(Class cls,
                      Object... oids)
        Remove data for the given oids from the cache.
      • evictAll

        void evictAll​(Class cls,
                      Collection oids)
        Remove data for the given oids from the cache.
      • evictAll

        void evictAll()
        Clear the cache.
        Specified by:
        evictAll in interface jakarta.persistence.Cache
      • getStatistics

        CacheStatistics getStatistics()
        Gets the number of read/write/hit on this receiver in total and per class basis.
        Since:
        1.3.0