モジュール spring.retry

クラス SoftReferenceMapRetryContextCache

実装済みのインターフェース一覧:
RetryContextCache

public class SoftReferenceMapRetryContextCache extends AbstractMapRetryContextCache<SoftReferenceSE<RetryContext>>
RetryContextCache のマップベースの実装。コンテキストのキャッシュをバックアップするマップは同期され、そのエントリはソフト参照されるため、負荷がかかるとガベージコレクションされる可能性があります。
作成者:
Dave Syer
関連事項:
  • コンストラクターの詳細

    • SoftReferenceMapRetryContextCache

      public SoftReferenceMapRetryContextCache()
      the default capacity でインスタンスを作成します
    • SoftReferenceMapRetryContextCache

      public SoftReferenceMapRetryContextCache(int capacity)
      指定された容量でインスタンスを作成し、キャッシュがいっぱいになったら最も古いエントリを削除します。
      パラメーター:
      capacity - キャッシュの初期容量
    • SoftReferenceMapRetryContextCache

      public SoftReferenceMapRetryContextCache(int capacity, boolean removeEldestEntries)
      指定された容量と、キャッシュが満杯になったときに適用するポリシーを持つインスタンスを作成します。
      パラメーター:
      capacity - キャッシュのサイズ
      removeEldestEntries - キャッシュがいっぱいになったときに、最も古いエントリを削除するかどうか
      導入:
      1.3.5
  • 方法の詳細