Class OmissionCacheEntry

java.lang.Object
overit.geocall.lang.OmissionCacheEntry
All Implemented Interfaces:
Serializable, Entry<Omission,Omission>

public class OmissionCacheEntry extends Object implements Entry<Omission,Omission>
Identify, load and serialize a omission entry within the
invalid reference
overit.geocall.Cache
See Also:
  • Constructor Details

    • OmissionCacheEntry

      public OmissionCacheEntry(String langName, String layerName, Long companyID)
      Create a cache entry that are able to load a Omission of a specific language,company and layer.
      Parameters:
      langName - The language of the omission.
      layerName - The layer to which the omission refers.
      companyID - The company id of the omission.
  • Method Details

    • getKey

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

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

      public Omission compose(Omission o)
      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<Omission,Omission>
      Parameters:
      o - 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.
    • 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<Omission,Omission>
      Returns:
      the ttl or -1 if the entry will never expire
    • 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<Omission,Omission>
      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<Omission,Omission>
      Returns:
      the ttl or -1 if the entry will never expire