Class StaticView.SVCache

java.lang.Object
overit.geocall.basic.ui.StaticView.SVCache
All Implemented Interfaces:
Serializable, Entry<DBView,DBView>
Enclosing class:
StaticView

protected class StaticView.SVCache extends Object implements Entry<DBView,DBView>
See Also:
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The method for obtaining the composed instance of the object.
    long
    Defines the ttl in milliseconds for the entry to remain in the cloud cache.
    Defines the name of a cacheable object
    protected long
     
    long
    Defines the ttl in milliseconds that the entry remains in the local cache. this interval should be reset against any reading of the entry.
    long
    Defines the ttl in milliseconds for the entry to remain in the local cache.
    Defines the name of a view for the cacheable object
    The method for obtaining the real value of the entry

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface overit.geocall.cache.Entry

    fromRaw, getCharset, toRaw
  • Constructor Details

    • SVCache

      protected SVCache()
  • Method Details

    • getKey

      public String getKey()
      Description copied from interface: Entry
      Defines the name of a cacheable object
      Specified by:
      getKey in interface Entry<DBView,DBView>
      Returns:
      the name of a cacheable object
    • getView

      public String getView()
      Description copied from interface: Entry
      Defines the name of a view for the cacheable object
      Specified by:
      getView in interface Entry<DBView,DBView>
      Returns:
      the name of the view for the cacheable object. Typically, the empty string indicates that the entry consists of only one view
    • load

      public DBView load()
      Description copied from interface: Entry
      The method for obtaining the real value of the entry
      Specified by:
      load in interface Entry<DBView,DBView>
      Returns:
      the real value of the entry. This method must be used when the cache doesn't contains a version for this Entry
    • getClusterTtl

      public long getClusterTtl()
      Description copied from interface: Entry
      Defines the ttl in milliseconds for the entry to remain in the cloud cache. After this interval, the entry should be removed.
      Specified by:
      getClusterTtl in interface Entry<DBView,DBView>
      Returns:
      the ttl or -1 if the entry will never expire
    • getMaxTtl

      protected long getMaxTtl()
    • getStoreTtl

      public long getStoreTtl()
      Description copied from interface: Entry
      Defines the ttl in milliseconds for the entry to remain in the local cache. After this interval, the entry should be removed.
      Specified by:
      getStoreTtl in interface Entry<DBView,DBView>
      Returns:
      the ttl or -1 if the entry will never expire
    • getReadTtl

      public long getReadTtl()
      Description copied from interface: Entry
      Defines the ttl in milliseconds that the entry remains in the local cache. this interval should be reset against any reading of the entry. After this interval, the entry should be removed.
      Specified by:
      getReadTtl in interface Entry<DBView,DBView>
      Returns:
      the ttl or -1 if the entry will never expire
    • compose

      public DBView compose(DBView t)
      Description copied from interface: Entry
      The method for obtaining the composed instance of the object. This method allows the real instance of the object to be aggregated with other information, such as the composition of a system configuration with the default one
      Specified by:
      compose in interface Entry<DBView,DBView>
      Parameters:
      t - the real instance of the object
      Returns:
      the composed instance of the object. This method must be used after the invocation of the Entry.load() method when the cache doesn't contain a version for this entry.