public class RetryContextSupport extends org.springframework.core.AttributeAccessorSupport implements RetryContext
コンストラクターと説明 |
---|
RetryContextSupport(RetryContext parent) |
修飾子と型 | メソッドと説明 |
---|---|
Throwable (標準 Javadoc) (英語) | getLastThrowable() 現在の再試行の原因となった例外オブジェクトのアクセサー。 |
RetryContext | getParent() 再試行ブロックがネストされている場合の親コンテキストのアクセサー。 |
int | getRetryCount() 再試行回数をカウントします。 |
boolean | isExhaustedOnly() 使い果たされたフラグ RetryContext.setExhaustedOnly() のパブリックアクセサー。 |
void | registerThrowable(Throwable (標準 Javadoc) (英語) throwable) パブリックインターフェース RetryContext の例外を設定し、スロー可能オブジェクトが null 以外の場合は再試行回数を増やします。 |
void | setExhaustedOnly() 現在の RetryCallback をこれ以上試行または再試行しないようフレームワークに通知します。 |
String (標準 Javadoc) (英語) | toString() |
attributeNames, copyAttributesFrom, equals, getAttribute, hasAttribute, hashCode, removeAttribute, setAttribute
public RetryContextSupport(RetryContext parent)
public RetryContext getParent()
RetryContext
RetryContext
の getParent
public boolean isExhaustedOnly()
RetryContext
RetryContext.setExhaustedOnly()
のパブリックアクセサー。RetryContext
の isExhaustedOnly
public void setExhaustedOnly()
RetryContext
RetryCallback
をこれ以上試行または再試行しないようフレームワークに通知します。RetryContext
の setExhaustedOnly
public int getRetryCount()
RetryContext
RetryContext
の getRetryCount
public Throwable (標準 Javadoc) (英語) getLastThrowable()
RetryContext
RetryContext
の getLastThrowable
public void registerThrowable(Throwable (標準 Javadoc) (英語) throwable)
RetryContext
の例外を設定し、スロー可能オブジェクトが null 以外の場合は再試行回数も増やします。すべての RetryPolicy
実装は、スロー可能オブジェクトの登録時にこのメソッドを使用する必要があります。このメソッドはカウンターを増やすため、再試行ごとに 1 回だけ呼び出す必要があります。このメソッドの使用はフレームワークによって強制されるものではなく、ポリシーの作成者に対するサービスプロバイダー契約です。throwable
- 現在の再試行が失敗する原因となった例外。public String (標準 Javadoc) (英語) toString()
Object (標準 Javadoc) (英語)
の toString (標準 Javadoc) (英語)
Copyright © 2018 SpringSource (英語) . All rights reserved.