@Service(name="HA-CNonceCache") @PerLookup public class HACNonceCacheImpl extends Object implements CNonceCache
Constructor and Description |
---|
HACNonceCacheImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object o) |
boolean |
containsValue(Object o) |
void |
destroy()
destroy
|
Set<Map.Entry<String,NonceInfo>> |
entrySet() |
NonceInfo |
get(Object o) |
long |
getCnonceCacheSize() |
long |
getNonceValidity() |
void |
init(long size,
String name,
long validity,
Map<String,String> props)
Initialize the cache
|
boolean |
isEmpty() |
Set<String> |
keySet() |
void |
postConstruct() |
NonceInfo |
put(String key,
NonceInfo value) |
void |
putAll(Map<? extends String,? extends NonceInfo> map) |
NonceInfo |
remove(Object o) |
protected boolean |
removeEldestEntry(Map.Entry<String,NonceInfo> eldest) |
void |
setCnonceCacheSize(long cnonceCacheSize) |
void |
setNonceValidity(long nonceValidity) |
int |
size() |
Collection<NonceInfo> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
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 long getCnonceCacheSize()
getCnonceCacheSize
in interface CNonceCache
public long getNonceValidity()
getNonceValidity
in interface CNonceCache
public boolean containsKey(Object o)
containsKey
in interface Map<String,NonceInfo>
public boolean containsValue(Object o)
containsValue
in interface Map<String,NonceInfo>
public Collection<NonceInfo> values()
public void postConstruct()
public void init(long size, String name, long validity, Map<String,String> props)
CNonceCache
init
in interface CNonceCache
public void destroy()
CNonceCache
destroy
in interface CNonceCache
Copyright © 2019. All rights reserved.