public class FixedIntervalReconnectStrategy extends ObjectSE implements ReconnectStrategy
コンストラクターと説明 |
---|
FixedIntervalReconnectStrategy(long interval) 新しい FixedIntervalReconnectStrategy インスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
LongSE | getTimeToNextAttempt(int attemptCount) 次の再接続試行に時間を戻します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public FixedIntervalReconnectStrategy(long interval)
FixedIntervalReconnectStrategy
インスタンスを作成します。interval
- 再接続を試行する頻度(ミリ秒)public LongSE getTimeToNextAttempt(int attemptCount)
ReconnectStrategy
ReconnectStrategy
の getTimeToNextAttempt
attemptCount
- すでに何回再接続が試みられたか null