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