クラス SpringReplayCache
java.lang.ObjectSE
org.springframework.ws.soap.security.wss4j2.cache.SpringReplayCache
- 実装済みのインターフェース一覧:
CloseableSE, AutoCloseableSE, org.apache.wss4j.common.cache.ReplayCache
- 既知の直属サブクラス
ConcurrentMapReplayCache
public class SpringReplayCache
extends ObjectSE
implements org.apache.wss4j.common.cache.ReplayCache
Apache WSS4J
ReplayCache は、Spring Cache によって裏付けられています。各キーには、設定可能な TTL を持つ有効期限 InstantSE が格納されます。デフォルトの TTL は 5 分、最大 TTL は 1 時間です。contains(String) consults that instant and evicts the entry when it is past expiry. This does not rely on the backing cache's own TTL configuration.
Subclasses may override onCacheAccess() and to perform additional eviction, for example, a full sweep over an in-memory cache.
For multi hosts deployment in production, make sure to use a Cache implementation that is distributed, as each host needs to access the same data. For simple, single host deployment, ConcurrentMapReplayCache can be used.
- 導入:
- 3.1.9
- 関連事項:
フィールド概要
フィールド修飾子と型フィールド説明static final longDefault TTL for entries in seconds.static final longMaximum TTL for entries in seconds.コンストラクター概要
コンストラクターコンストラクター説明SpringReplayCache(org.springframework.cache.Cache cache) Create an instance with the given cache and default TTLs.SpringReplayCache(org.springframework.cache.Cache cache, long defaultTtlSeconds, long maxTtlSeconds) Create an instance with the given cache and TTLs.方法の概要
フィールドの詳細
DEFAULT_TTL
public static final long DEFAULT_TTLDefault TTL for entries in seconds.- 関連事項:
MAX_TTL
public static final long MAX_TTLMaximum TTL for entries in seconds.- 関連事項:
コンストラクターの詳細
SpringReplayCache
public SpringReplayCache(org.springframework.cache.Cache cache) Create an instance with the given cache and default TTLs.- パラメーター:
cache- 使用するキャッシュ
SpringReplayCache
public SpringReplayCache(org.springframework.cache.Cache cache, long defaultTtlSeconds, long maxTtlSeconds) Create an instance with the given cache and TTLs.- パラメーター:
cache- 使用するキャッシュdefaultTtlSeconds- the default TTL in secondsmaxTtlSeconds- the maximum TTL in seconds
方法の詳細
getCache
protected final org.springframework.cache.Cache getCache()add
- 次で指定:
- インターフェース
org.apache.wss4j.common.cache.ReplayCache内のadd
add
contains
- 次で指定:
- インターフェース
org.apache.wss4j.common.cache.ReplayCache内のcontains
onCacheAccess
protected void onCacheAccess()キャッシュにアクセスされた際に呼び出されます。エントリが保存された後、またはエントリの存在を確認する前に呼び出されます。close
public void close()- 次で指定:
- インターフェース
AutoCloseableSE内のclose - 次で指定:
- インターフェース
CloseableSE内のclose