public class RdbmsRetryOperationsInterceptor
extends org.springframework.retry.interceptor.RetryOperationsInterceptor
RetryOperationsInterceptor
のサブクラス。このクラスは、ネストされた再試行可能なメソッドの場合に、外部再試行操作が 1 つだけであることも保証します。これにより、サービスは、再試行インターセプターが構成されている可能性のある他のサービスを呼び出すことができます。
コンストラクターと説明 |
---|
RdbmsRetryOperationsInterceptor() |
修飾子と型 | メソッドと説明 |
---|---|
ObjectSE | invoke(MethodInvocation invocation) メソッド RetryOperationsInterceptor.invoke(org.aopalliance.intercept.MethodInvocation) メソッドに委譲する前に、開いている再試行操作がないことを確認します。 |
protected boolean | isRetryContextOperationActive() このスレッド実行内ですでにプロキシが実行されている場合は常に戻ります。 |
setLabel, setRecoverer, setRetryOperations
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public ObjectSE invoke(MethodInvocation invocation) throws ThrowableSE
RetryOperationsInterceptor.invoke(org.aopalliance.intercept.MethodInvocation)
メソッドに委譲する前に、開いている再試行操作がないことを確認します。現在のスレッド実行に使用できる RetryContext
がすでにある場合は、MethodInvocation を直接実行します。MethodInterceptor
の invoke
org.springframework.retry.interceptor.RetryOperationsInterceptor
の invoke
invocation
- - このインターセプターのターゲットであるメソッド呼び出し ThrowableSE
- - 使用可能なトランザクションがすでに存在する場合は、メソッド呼び出しターゲットまたは JdbcRetryException
によってスローされる例外。protected boolean isRetryContextOperationActive()
RetrySynchronizationManager
内で使用可能な RetryContext
がある場合は true
、それ以外の場合は false
。Copyright © 2021 Pivotal Software, Inc.. All rights reserved.