@Service(name="CNonceCache") @PerLookup public final class CNonceCacheImpl extends LinkedHashMap<String,NonceInfo> implements CNonceCache
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CNonceCacheImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
destroy
|
long |
getCnonceCacheSize() |
String |
getEldestCNonce() |
long |
getNonceValidity() |
void |
init(long size,
String name,
long validity,
Map<String,String> props)
Initialize the cache
|
protected boolean |
removeEldestEntry(Map.Entry<String,NonceInfo> eldest) |
void |
setCnonceCacheSize(long cnonceCacheSize) |
void |
setNonceValidity(long nonceValidity) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesprotected boolean removeEldestEntry(Map.Entry<String,NonceInfo> eldest)
removeEldestEntry in class LinkedHashMap<String,NonceInfo>public long getCnonceCacheSize()
getCnonceCacheSize in interface CNonceCachepublic long getNonceValidity()
getNonceValidity in interface CNonceCachepublic String getEldestCNonce()
public void init(long size,
String name,
long validity,
Map<String,String> props)
CNonceCacheinit in interface CNonceCachepublic void setCnonceCacheSize(long cnonceCacheSize)
setCnonceCacheSize in interface CNonceCachecnonceCacheSize - the cnonceCacheSize to setpublic void setNonceValidity(long nonceValidity)
setNonceValidity in interface CNonceCachenonceValidity - the nonceValidity to setpublic void destroy()
CNonceCachedestroy in interface CNonceCacheCopyright © 2017. All rights reserved.