Class CachingOptions


  • public class CachingOptions
    extends Object
    Set of options that should be used when caching in a service call. expireAfter and refreshFrequency are expressed in ticks.
    Author:
    Alfonso Vásquez
    • Field Detail

      • DEFAULT_CACHING_OPTIONS

        public static final CachingOptions DEFAULT_CACHING_OPTIONS
      • CACHE_OFF_CACHING_OPTIONS

        public static final CachingOptions CACHE_OFF_CACHING_OPTIONS
    • Constructor Detail

      • CachingOptions

        public CachingOptions()
      • CachingOptions

        public CachingOptions​(boolean doCaching,
                              long expireAfter,
                              long refreshFrequency)
    • Method Detail

      • doCaching

        public boolean doCaching()
      • setDoCaching

        public void setDoCaching​(boolean doCaching)
      • getExpireAfter

        public long getExpireAfter()
      • setExpireAfter

        public void setExpireAfter​(long expireAfter)
      • getRefreshFrequency

        public long getRefreshFrequency()
      • setRefreshFrequency

        public void setRefreshFrequency​(long refreshFrequency)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object