Interface IgniteCacheExpiryPolicy

  • All Known Implementing Classes:
    GridCacheAdapter.CacheExpiryPolicy

    public interface IgniteCacheExpiryPolicy
    Wrapper for ExpiryPolicy used to track information about cache entries whose time to live was modified after access.
    • Method Detail

      • forCreate

        long forCreate()
        Returns:
        TTL.
      • forUpdate

        long forUpdate()
        Returns:
        TTL.
      • forAccess

        long forAccess()
        Returns:
        TTL.
      • ttlUpdated

        void ttlUpdated​(KeyCacheObject key,
                        GridCacheVersion ver,
                        @Nullable
                        @Nullable Collection<UUID> rdrs)
        Callback for ttl update on entry access.
        Parameters:
        key - Entry key.
        ver - Entry version.
        rdrs - Entry readers.
      • reset

        void reset()
        Clears information about updated entries.
      • readyToFlush

        boolean readyToFlush​(int cnt)
        Parameters:
        cnt - Entries count.
        Returns:
        True if number of entries or readers is greater than given number.