Interface IPolicyCache

All Known Implementing Classes:
PolicyCache

public interface IPolicyCache
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    invalidates the cache
    boolean
     
    boolean
    updateCache(Set<Policy> policies)
    updates cache content and refreshes validation time
    void
    refreshes validation time of the cache without changing its contents
  • Method Details

    • getPolicies

      Optional<Set<Policy>> getPolicies()
      Returns:
      the cached policies if cache is valid or else empty Optional
    • isValid

      boolean isValid()
      Returns:
      whether the cache is valid
    • invalidate

      void invalidate()
      invalidates the cache
    • validate

      void validate()
      refreshes validation time of the cache without changing its contents
    • updateCache

      boolean updateCache(Set<Policy> policies)
      updates cache content and refreshes validation time
      Parameters:
      policies -
      Returns:
      whether updating the cache succeeded