Interface CacheElement


  • public interface CacheElement
    Interface for cached element. Abstraction around physical cache implementation.
    Version:
    $Id$
    • Method Detail

      • getContent

        Object getContent()
      • getTimeToLiveSeconds

        int getTimeToLiveSeconds()
      • setTimeToLiveSeconds

        void setTimeToLiveSeconds​(int timeToLive)
      • getTimeToIdleSeconds

        int getTimeToIdleSeconds()
      • setTimeToIdleSeconds

        void setTimeToIdleSeconds​(int timeToIdle)
      • isEternal

        boolean isEternal()
      • setEternal

        void setEternal​(boolean eternal)
      • isCacheable

        boolean isCacheable()
        Returns:
        true is this element is suited to be cached