Interface CacheControl


  • @Role
    public interface CacheControl
    Control the caches behavior in the current context.
    Since:
    11.8RC1
    Version:
    $Id: f90d0002376ca5251a2cec1a3452fa3753c7775a $
    • Method Detail

      • setCacheReadAllowed

        void setCacheReadAllowed​(boolean enabled)
        Parameters:
        enabled - true if it's allowed to get a resource from a cache
      • isCacheReadAllowed

        boolean isCacheReadAllowed​(Date dateTime)
        Parameters:
        dateTime - the date and time of the resource
        Returns:
        true if it's allowed to use the resource cached at the passed Date
      • isCacheReadAllowed

        boolean isCacheReadAllowed​(ChronoLocalDateTime<?> dateTime)
        Parameters:
        dateTime - the date and time of the resource
        Returns:
        true if it's allowed to use the resource cached at the passed Date
      • isCacheReadAllowed

        boolean isCacheReadAllowed()
        Returns:
        true if it's allowed to use the cache resources