Package overit.geocall.lang
Class ConfigChapterCacheEntry
java.lang.Object
overit.geocall.lang.ConfigChapterCacheEntry
- All Implemented Interfaces:
Serializable,Entry<ConfigChapter,ConfigChapter>
Identify, load and serialize a configuration chapter entry within the
invalid reference
overit.geocall.Cache
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfigChapterCacheEntry(String langName, Long companyID) Create a cache entry that are able to load aConfigChapterof a specific language and company -
Method Summary
Modifier and TypeMethodDescriptionThe method for obtaining the composed instance of the object.longDefines the ttl in milliseconds for the entry to remain in the cloud cache.getKey()Defines the name of a cacheable objectlongDefines the ttl in milliseconds that the entry remains in the local cache. this interval should be reset against any reading of the entry.longDefines the ttl in milliseconds for the entry to remain in the local cache.load()The method for obtaining the real value of the entryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.cache.Entry
fromRaw, getCharset, getView, toRaw
-
Constructor Details
-
ConfigChapterCacheEntry
Create a cache entry that are able to load aConfigChapterof a specific language and company- Parameters:
langName- The language of the chapter.companyID- The company id of the chapter.
-
-
Method Details
-
getKey
Description copied from interface:EntryDefines the name of a cacheable object- Specified by:
getKeyin interfaceEntry<ConfigChapter,ConfigChapter> - Returns:
- the name of a cacheable object
-
load
Description copied from interface:EntryThe method for obtaining the real value of the entry- Specified by:
loadin interfaceEntry<ConfigChapter,ConfigChapter> - Returns:
- the real value of the entry. This method must be used when the cache doesn't contains a version for
this
Entry
-
compose
Description copied from interface:EntryThe 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:
composein interfaceEntry<ConfigChapter,ConfigChapter> - Parameters:
c- 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:EntryDefines the ttl in milliseconds for the entry to remain in the cloud cache. After this interval, the entry should be removed.- Specified by:
getClusterTtlin interfaceEntry<ConfigChapter,ConfigChapter> - Returns:
- the ttl or -1 if the entry will never expire
-
getStoreTtl
public long getStoreTtl()Description copied from interface:EntryDefines the ttl in milliseconds for the entry to remain in the local cache. After this interval, the entry should be removed.- Specified by:
getStoreTtlin interfaceEntry<ConfigChapter,ConfigChapter> - Returns:
- the ttl or -1 if the entry will never expire
-
getReadTtl
public long getReadTtl()Description copied from interface:EntryDefines 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:
getReadTtlin interfaceEntry<ConfigChapter,ConfigChapter> - Returns:
- the ttl or -1 if the entry will never expire
-