Class ConcurrentMapReplayCache
java.lang.Object
org.springframework.ws.soap.security.wss4j2.cache.SpringReplayCache
org.springframework.ws.soap.security.wss4j2.cache.ConcurrentMapReplayCache
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.wss4j.common.cache.ReplayCache
SpringReplayCache backed by an internal ConcurrentMapCache that sweeps
all expired entries on cache access so keys that are never read again are still removed
once they expire.
Use this implementation only with single host deployment. Services that are deployment
on multiple hosts should use a distributed cache, see SpringReplayCache for
options.
- Since:
- 3.1.9
-
Field Summary
Fields inherited from class org.springframework.ws.soap.security.wss4j2.cache.SpringReplayCache
DEFAULT_TTL, MAX_TTL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInvoked when the cache is accessed, either after an entry has been stored or before checking for the presence of one.
-
Constructor Details
-
ConcurrentMapReplayCache
public ConcurrentMapReplayCache() -
ConcurrentMapReplayCache
public ConcurrentMapReplayCache(long defaultTtlSeconds, long maxTtlSeconds)
-
-
Method Details
-
onCacheAccess
protected void onCacheAccess()Description copied from class:SpringReplayCacheInvoked when the cache is accessed, either after an entry has been stored or before checking for the presence of one.- Overrides:
onCacheAccessin classSpringReplayCache
-