public class ClientConfigurationElementProvider extends Object implements CacheElementProvider<ClientSingleElementCacheKey,ClientConfigurationProperties>
ETERNAL_TIME_TO_LIVE| Constructor and Description |
|---|
ClientConfigurationElementProvider() |
| 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).
|
ClientConfigurationProperties |
load(ClientSingleElementCacheKey key)
Provides an element identified by the key for caching.
|
public String getContentType()
getContentType in interface CacheElementProvider<ClientSingleElementCacheKey,ClientConfigurationProperties>public int getTimeToLive()
CacheElementProvider.ETERNAL_TIME_TO_LIVE when the
element should never expire.getTimeToLive in interface CacheElementProvider<ClientSingleElementCacheKey,ClientConfigurationProperties>public ClientConfigurationProperties load(ClientSingleElementCacheKey key)
load in interface CacheElementProvider<ClientSingleElementCacheKey,ClientConfigurationProperties>key - the key to identify the requested elementCopyright © 2019 Communote team. All rights reserved.