public abstract class RetryContextFactorySupport extends java.lang.Object implements RetryHandler.RetryContextFactory
RetryHandler.RetryContextFactoryの実装をサポートするクラス。| Modifier and Type | Field and Description |
|---|---|
protected long |
maxRetryTime
最長リトライ時間(単位:msec)
|
protected long |
retryIntervals
リトライ間隔(単位:msec)
|
| Constructor and Description |
|---|
RetryContextFactorySupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
setMaxRetryTime(long maxRetryTime)
最長リトライ時間(単位:msec)を設定する。
ハンドラ構成によっては、処理が正常終了し続ける間、
リトライ制御を行う側まで制御が戻ってこないケースが存在する。
RequestThreadLoopHandlerを使用する場合が該当する。
このような場合に、リトライが成功したか否かをリトライ制御を行う側が判断するために、 最長リトライ時間を設けている。リトライ経過時間が最長リトライ時間を超えている場合は リトライが成功したと判断する。 デフォルトは15分。 |
void |
setRetryIntervals(long retryIntervals)
リトライ間隔(単位:msec)を設定する。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateRetryContextprotected long maxRetryTime
protected long retryIntervals
public void setMaxRetryTime(long maxRetryTime)
RequestThreadLoopHandlerを使用する場合が該当する。
maxRetryTime - 最長リトライ時間(単位:msec)public void setRetryIntervals(long retryIntervals)
retryIntervals - リトライ間隔(単位:msec)