public class StandaloneClientCacheElementProvider extends Object implements CacheElementProvider<StringIdBasedCacheKey,ClientTO>
ETERNAL_TIME_TO_LIVE| Constructor and Description |
|---|
StandaloneClientCacheElementProvider() |
| 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).
|
ClientTO |
load(StringIdBasedCacheKey key)
Provides an element identified by the key for caching.
|
public StandaloneClientCacheElementProvider()
public String getContentType()
CacheElementProvidergetContentType in interface CacheElementProvider<StringIdBasedCacheKey,ClientTO>public int getTimeToLive()
CacheElementProviderCacheElementProvider.ETERNAL_TIME_TO_LIVE when the
element should never expire.getTimeToLive in interface CacheElementProvider<StringIdBasedCacheKey,ClientTO>public ClientTO load(StringIdBasedCacheKey key) throws CacheElementProviderException
CacheElementProviderload in interface CacheElementProvider<StringIdBasedCacheKey,ClientTO>key - the key to identify the requested elementCacheElementProviderException - in case the loading failed and nothing should or can be cachedCopyright © 2019 Communote team. All rights reserved.