public class ApplicationConfigurationElementProvider extends Object implements CacheElementProvider<ApplicationSingleElementCacheKey,ApplicationConfigurationProperties>
ETERNAL_TIME_TO_LIVE
Constructor and Description |
---|
ApplicationConfigurationElementProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Returns a unique string naming the content type of the elements provided by this provider
(e.g.
|
int |
getTimeToLive()
Returns the time in seconds describing how long a provided element will be cached without
expiring (when it is not replaced manually).
|
ApplicationConfigurationProperties |
load(ApplicationSingleElementCacheKey key)
Provides an element identified by the key for caching.
|
public ApplicationConfigurationElementProvider()
public String getContentType()
getContentType
in interface CacheElementProvider<ApplicationSingleElementCacheKey,ApplicationConfigurationProperties>
public int getTimeToLive()
CacheElementProvider.ETERNAL_TIME_TO_LIVE
when the
element should never expire.getTimeToLive
in interface CacheElementProvider<ApplicationSingleElementCacheKey,ApplicationConfigurationProperties>
public ApplicationConfigurationProperties load(ApplicationSingleElementCacheKey key)
load
in interface CacheElementProvider<ApplicationSingleElementCacheKey,ApplicationConfigurationProperties>
key
- the key to identify the requested elementCopyright © 2019 Communote team. All rights reserved.