クラス 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 long
    Default TTL for entries in seconds.
    static final long
    Maximum 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.
  • 方法の概要

    修飾子と型
    メソッド
    説明
    void
    add(StringSE identifier)
    void
    add(StringSE identifier, @Nullable InstantSE expiry)
    void
    boolean
    contains(StringSE identifier)
    protected final org.springframework.cache.Cache
    protected void
    キャッシュにアクセスされた際に呼び出されます。エントリが保存された後、またはエントリの存在を確認する前に呼び出されます。

    クラス ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • フィールドの詳細

  • コンストラクターの詳細

    • 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 seconds
      maxTtlSeconds - the maximum TTL in seconds
  • 方法の詳細

    • getCache

      protected final org.springframework.cache.Cache getCache()
    • add

      public void add(StringSE identifier)
      次で指定:
      インターフェース org.apache.wss4j.common.cache.ReplayCache 内の add 
    • add

      public void add(StringSE identifier, @Nullable InstantSE expiry)
      次で指定:
      インターフェース org.apache.wss4j.common.cache.ReplayCache 内の add 
    • contains

      public boolean contains(StringSE identifier)
      次で指定:
      インターフェース org.apache.wss4j.common.cache.ReplayCache 内の contains 
    • onCacheAccess

      protected void onCacheAccess()
      キャッシュにアクセスされた際に呼び出されます。エントリが保存された後、またはエントリの存在を確認する前に呼び出されます。
    • close

      public void close()
      次で指定:
      インターフェース AutoCloseableSE 内の close 
      次で指定:
      インターフェース CloseableSE 内の close