public class FixedIntervalReconnectStrategy extends java.lang.Object implements ReconnectStrategy
| コンストラクターと説明 |
|---|
FixedIntervalReconnectStrategy(long interval) 新しい FixedIntervalReconnectStrategy インスタンスを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
java.lang.Long | getTimeToNextAttempt(int attemptCount) 次の再接続試行に時間を戻します。 |
public FixedIntervalReconnectStrategy(long interval)
FixedIntervalReconnectStrategy インスタンスを作成します。interval - 再接続を試行する頻度(ミリ秒)public java.lang.Long getTimeToNextAttempt(int attemptCount)
ReconnectStrategyReconnectStrategy 内の getTimeToNextAttempt attemptCount - すでに何回再接続が試みられたか null