クラス SimpleRetryInterceptor
java.lang.ObjectSE
org.springframework.resilience.retry.AbstractRetryInterceptor
org.springframework.resilience.retry.SimpleRetryInterceptor
- 実装されているすべてのインターフェース:
Advice, Interceptor, MethodInterceptor
指定された
MethodRetrySpec に基づいた、単純な具体的な再試行インターセプター。- 導入:
- 7.0
- 作成者:
- Juergen Hoeller
コンストラクターの概要
コンストラクターコンストラクター説明SimpleRetryInterceptor(MethodRetrySpec retrySpec) 指定されたMethodRetrySpecのSimpleRetryInterceptorを作成します。メソッドのサマリー
修飾子と型メソッド説明protected MethodRetrySpecgetRetrySpec(MethodSE method, ClassSE<?> targetClass) 指定されたターゲット上の指定されたメソッドの再試行仕様を決定します。クラス AbstractRetryInterceptor から継承されたメソッド
invoke
コンストラクターの詳細
SimpleRetryInterceptor
指定されたMethodRetrySpecのSimpleRetryInterceptorを作成します。- パラメーター:
retrySpec- すべてのメソッド呼び出しに使用する仕様
メソッドの詳細
getRetrySpec
クラスからコピーされた説明:AbstractRetryInterceptor指定されたターゲット上の指定されたメソッドの再試行仕様を決定します。- 次で指定:
- クラス
AbstractRetryInterceptorのgetRetrySpec - パラメーター:
method- 現在実行中のメソッドtargetClass- 現在のターゲットオブジェクトのクラス- 戻り値:
- 再試行の指定を
MethodRetrySpecとして