@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, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public void init(long size, String name, long validity, Map<String,String> props)
CNonceCache
init
in interface CNonceCache
protected boolean removeEldestEntry(Map.Entry<String,NonceInfo> eldest)
removeEldestEntry
in class LinkedHashMap<String,NonceInfo>
public long getCnonceCacheSize()
getCnonceCacheSize
in interface CNonceCache
public long getNonceValidity()
getNonceValidity
in interface CNonceCache
public String getEldestCNonce()
public void setCnonceCacheSize(long cnonceCacheSize)
setCnonceCacheSize
in interface CNonceCache
cnonceCacheSize
- the cnonceCacheSize to setpublic void setNonceValidity(long nonceValidity)
setNonceValidity
in interface CNonceCache
nonceValidity
- the nonceValidity to setpublic void destroy()
CNonceCache
destroy
in interface CNonceCache
Copyright © 2019. All rights reserved.