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

public class ConcurrentMapReplayCache extends SpringReplayCache
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
  • Constructor Details

    • ConcurrentMapReplayCache

      public ConcurrentMapReplayCache()
    • ConcurrentMapReplayCache

      public ConcurrentMapReplayCache(long defaultTtlSeconds, long maxTtlSeconds)
  • Method Details

    • onCacheAccess

      protected void onCacheAccess()
      Description copied from class: SpringReplayCache
      Invoked when the cache is accessed, either after an entry has been stored or before checking for the presence of one.
      Overrides:
      onCacheAccess in class SpringReplayCache