クラス RetryInterceptorBuilder.StatefulRetryInterceptorBuilder
java.lang.ObjectSE
org.springframework.retry.interceptor.RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>
org.springframework.retry.interceptor.RetryInterceptorBuilder.StatefulRetryInterceptorBuilder
- 含まれているクラス:
- RetryInterceptorBuilder<T extends org.aopalliance.intercept.MethodInterceptor>
public static class RetryInterceptorBuilder.StatefulRetryInterceptorBuilder
extends RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>
ネストされたクラスの概要
クラス org.springframework.retry.interceptor.RetryInterceptorBuilder から継承されたネストクラス / インターフェース
RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder, RetryInterceptorBuilder.StatefulRetryInterceptorBuilder, RetryInterceptorBuilder.StatelessRetryInterceptorBuilderフィールド概要
クラス org.springframework.retry.interceptor.RetryInterceptorBuilder から継承されたフィールド
label, recoverer, retryOperations, retryTemplate, simpleRetryPolicy方法の概要
修飾子と型メソッド説明backOffOptions(long initialInterval, double multiplier, long maxInterval) バックオフオプションを適用します。backOffPolicy(BackOffPolicy policy) バックオフポリシーを適用します。build()keyGenerator(MethodArgumentsKeyGenerator keyGenerator) ステートフル再試行では、アイテムが識別可能である必要があります。maxAttempts(int maxAttempts) 最大試行回数を適用します - SimpleRetryPolicy が使用されます。newMethodArgumentsIdentifier(NewMethodArgumentsIdentifier newMethodArgumentsIdentifier) カスタムの新しいアイテム識別子を適用します。recoverer(MethodInvocationRecoverer<?> recoverer) 再試行インターセプターにMethodInvocationRecovererを適用します。retryOperations(RetryOperations retryOperations) 再試行操作を適用します。これが設定されると、他のプロパティは設定できなくなります。他のプロパティが適用されている場合は設定できません。retryPolicy(RetryPolicy policy) 再試行ポリシーを適用する - カスタム再試行テンプレートが提供されている場合、または最大試行回数またはバックオフオプションまたはポリシーが適用されている場合は使用できません。rollbackFor(Classifier<? super ThrowableSE, BooleanSE> rollbackClassifier) 進行中のトランザクションのロールバックを制御します。クラス org.springframework.retry.interceptor.RetryInterceptorBuilder から継承されたメソッド
circuitBreaker, label, stateful, stateless
方法の詳細
keyGenerator
public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder keyGenerator(MethodArgumentsKeyGenerator keyGenerator) ステートフル再試行では、アイテムが識別可能である必要があります。- パラメーター:
keyGenerator- キージェネレーター。- 戻り値:
- this。
newMethodArgumentsIdentifier
public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder newMethodArgumentsIdentifier(NewMethodArgumentsIdentifier newMethodArgumentsIdentifier) カスタムの新しいアイテム識別子を適用します。- パラメーター:
newMethodArgumentsIdentifier- 新しいアイテム識別子。- 戻り値:
- this。
rollbackFor
public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder rollbackFor(Classifier<? super ThrowableSE, BooleanSE> rollbackClassifier) 進行中のトランザクションのロールバックを制御します。ステートフル再試行では、通常、すべての例外によってロールバック (つまり、再スロー) が発生します。- パラメーター:
rollbackClassifier- ロールバック分類子 (再スローする必要がある例外の場合は true を返します)。- 戻り値:
- this。
retryOperations
public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder retryOperations(RetryOperations retryOperations) クラスからコピーされた説明:RetryInterceptorBuilder再試行操作を適用します。これが設定されると、他のプロパティは設定できなくなります。他のプロパティが適用されている場合は設定できません。- オーバーライド:
- クラス
RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>のretryOperations - パラメーター:
retryOperations- 再試行操作。- 戻り値:
- this。
maxAttempts
クラスからコピーされた説明:RetryInterceptorBuilder最大試行回数を適用します - SimpleRetryPolicy が使用されます。カスタムの再試行操作または再試行ポリシーが設定されている場合は使用できません。- オーバーライド:
- クラス
RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>のmaxAttempts - パラメーター:
maxAttempts- 最大試行回数(最初の試行回数を含む)。- 戻り値:
- this。
backOffOptions
public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder backOffOptions(long initialInterval, double multiplier, long maxInterval) クラスからコピーされた説明:RetryInterceptorBuilderバックオフオプションを適用します。カスタムの再試行操作またはバックオフポリシーが設定されている場合は使用できません。- オーバーライド:
- クラス
RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>のbackOffOptions - パラメーター:
initialInterval- 初期間隔。multiplier- 乗数。maxInterval- 最大間隔。- 戻り値:
- this。
retryPolicy
クラスからコピーされた説明:RetryInterceptorBuilder再試行ポリシーを適用する - カスタム再試行テンプレートが提供されている場合、または最大試行回数またはバックオフオプションまたはポリシーが適用されている場合は使用できません。- オーバーライド:
- クラス
RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>のretryPolicy - パラメーター:
policy- ポリシー。- 戻り値:
- this。
backOffPolicy
クラスからコピーされた説明:RetryInterceptorBuilderバックオフポリシーを適用します。カスタムの再試行操作またはバックオフポリシーが適用されている場合は使用できません。- オーバーライド:
- クラス
RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>のbackOffPolicy - パラメーター:
policy- ポリシー。- 戻り値:
- this。
recoverer
public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder recoverer(MethodInvocationRecoverer<?> recoverer) クラスからコピーされた説明:RetryInterceptorBuilder再試行インターセプターにMethodInvocationRecovererを適用します。- オーバーライド:
- クラス
RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>のrecoverer - パラメーター:
recoverer- 回復者。- 戻り値:
- this。
build