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 void
clear()
boolean
containsKey(Object o)
boolean
containsValue(Object o)
void
destroy()
destroySet<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 cacheboolean
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()
-
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:
setCnonceCacheSize
in interfaceCNonceCache
- Parameters:
cnonceCacheSize
- the cnonceCacheSize to set
-
setNonceValidity
public void setNonceValidity(long nonceValidity)
- Specified by:
setNonceValidity
in interfaceCNonceCache
- Parameters:
nonceValidity
- the nonceValidity to set
-
getCnonceCacheSize
public long getCnonceCacheSize()
- Specified by:
getCnonceCacheSize
in interfaceCNonceCache
- Returns:
- the cnonceCacheSize
-
getNonceValidity
public long getNonceValidity()
- Specified by:
getNonceValidity
in interfaceCNonceCache
- Returns:
- the nonceValidity
-
containsKey
public boolean containsKey(Object o)
- Specified by:
containsKey
in interfaceMap<String,NonceInfo>
-
containsValue
public boolean containsValue(Object o)
- Specified by:
containsValue
in 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:CNonceCache
Initialize the cache- Specified by:
init
in interfaceCNonceCache
-
destroy
public void destroy()
Description copied from interface:CNonceCache
destroy- Specified by:
destroy
in interfaceCNonceCache
-
-