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