Package org.glassfish.web.ha
Class HACNonceCacheImpl
- java.lang.Object
-
- org.glassfish.web.ha.HACNonceCacheImpl
-
- All Implemented Interfaces:
Map<String,NonceInfo>,CNonceCache
@Service(name="HA-CNonceCache") @PerLookup public class HACNonceCacheImpl extends Object implements CNonceCache
- Author:
- vbkumarjayanti
-
-
Constructor Summary
Constructors Constructor Description HACNonceCacheImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object o)booleancontainsValue(Object o)voiddestroy()destroySet<Map.Entry<String,NonceInfo>>entrySet()NonceInfoget(Object o)longgetCnonceCacheSize()longgetNonceValidity()voidinit(long size, String name, long validity, Map<String,String> props)Initialize the cachebooleanisEmpty()Set<String>keySet()voidpostConstruct()NonceInfoput(String key, NonceInfo value)voidputAll(Map<? extends String,? extends NonceInfo> map)NonceInforemove(Object o)protected booleanremoveEldestEntry(Map.Entry<String,NonceInfo> eldest)voidsetCnonceCacheSize(long cnonceCacheSize)voidsetNonceValidity(long nonceValidity)intsize()Collection<NonceInfo>values()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
setCnonceCacheSize
public void setCnonceCacheSize(long cnonceCacheSize)
- Specified by:
setCnonceCacheSizein interfaceCNonceCache- Parameters:
cnonceCacheSize- the cnonceCacheSize to set
-
setNonceValidity
public void setNonceValidity(long nonceValidity)
- Specified by:
setNonceValidityin interfaceCNonceCache- Parameters:
nonceValidity- the nonceValidity to set
-
getCnonceCacheSize
public long getCnonceCacheSize()
- Specified by:
getCnonceCacheSizein interfaceCNonceCache- Returns:
- the cnonceCacheSize
-
getNonceValidity
public long getNonceValidity()
- Specified by:
getNonceValidityin interfaceCNonceCache- Returns:
- the nonceValidity
-
containsKey
public boolean containsKey(Object o)
- Specified by:
containsKeyin interfaceMap<String,NonceInfo>
-
containsValue
public boolean containsValue(Object o)
- Specified by:
containsValuein interfaceMap<String,NonceInfo>
-
values
public Collection<NonceInfo> values()
-
postConstruct
public void postConstruct()
-
init
public void init(long size, String name, long validity, Map<String,String> props)Description copied from interface:CNonceCacheInitialize the cache- Specified by:
initin interfaceCNonceCache
-
destroy
public void destroy()
Description copied from interface:CNonceCachedestroy- Specified by:
destroyin interfaceCNonceCache
-
-