クラス AbstractRetryInterceptor

java.lang.ObjectSE
org.springframework.resilience.retry.AbstractRetryInterceptor
実装されているすべてのインターフェース:
Advice, Interceptor, MethodInterceptor
既知の直属サブクラス
SimpleRetryInterceptor

public abstract class AbstractRetryInterceptor extends ObjectSE implements MethodInterceptor
特定の再試行仕様を RetryTemplate または Reactor のいずれかに適合させる抽象再試行インターセプター実装。
導入:
7.0
作成者:
Juergen Hoeller
関連事項:
  • コンストラクターの詳細

    • AbstractRetryInterceptor

      public AbstractRetryInterceptor()
  • メソッドの詳細

    • invoke

      public @Nullable ObjectSE invoke(MethodInvocation invocation) throws ThrowableSE
      インターフェースからコピーされた説明: MethodInterceptor
      このメソッドを実装して、呼び出しの前後に追加の処理を実行します。正しい実装としては、必ず Joinpoint.proceed() を呼び出すようにします。
      次で指定:
      インターフェース MethodInterceptorinvoke 
      パラメーター:
      invocation - メソッド呼び出しジョインポイント
      戻り値:
      Joinpoint.proceed() の呼び出しの結果。インターセプターによってインターセプトされる可能性があります
      例外:
      ThrowableSE - インターセプターまたはターゲットオブジェクトが例外をスローする場合
    • getRetrySpec

      protected abstract @Nullable MethodRetrySpec getRetrySpec(MethodSE method, ClassSE<?> targetClass)
      指定されたターゲット上の指定されたメソッドの再試行仕様を決定します。
      パラメーター:
      method - 現在実行中のメソッド
      targetClass - 現在のターゲットオブジェクトのクラス
      戻り値:
      再試行の指定を MethodRetrySpec として