public class EHCacheReplayCache extends Object implements ReplayCache
| Constructor and Description |
|---|
EHCacheReplayCache(String key) |
EHCacheReplayCache(String key,
Path diskstorePath) |
EHCacheReplayCache(String key,
Path diskstorePath,
long diskSize,
long heapEntries,
boolean persistent) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String identifier)
Add the given identifier to the cache.
|
void |
add(String identifier,
Instant expiry)
Add the given identifier to the cache to be cached for the given time
|
void |
close() |
boolean |
contains(String identifier)
Return true if the given identifier is contained in the cache
|
void |
initComplete() |
void |
postShutdown() |
void |
preShutdown() |
public EHCacheReplayCache(String key) throws WSSecurityException
WSSecurityExceptionpublic EHCacheReplayCache(String key, Path diskstorePath) throws WSSecurityException
WSSecurityExceptionpublic EHCacheReplayCache(String key, Path diskstorePath, long diskSize, long heapEntries, boolean persistent) throws WSSecurityException
WSSecurityExceptionpublic void add(String identifier)
add in interface ReplayCacheidentifier - The identifier to be addedpublic void add(String identifier, Instant expiry)
add in interface ReplayCacheidentifier - The identifier to be addedexpiry - A custom expiry time for the identifier. Can be null in which case, the default expiry is used.public boolean contains(String identifier)
contains in interface ReplayCacheidentifier - The identifier to checkpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void initComplete()
public void preShutdown()
public void postShutdown()
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.