クラス FixedIntervalReconnectStrategy
java.lang.ObjectSE
org.springframework.messaging.tcp.FixedIntervalReconnectStrategy
- 実装されたすべてのインターフェース:
ReconnectStrategy
一定の間隔で再接続を試行する簡単な方法。
- 導入:
- 4.0
- 作成者:
- Rossen Stoyanchev
コンストラクターのサマリー
コンストラクターコンストラクター説明FixedIntervalReconnectStrategy
(long interval) 新しいFixedIntervalReconnectStrategy
インスタンスを作成します。方法の概要
コンストラクターの詳細
FixedIntervalReconnectStrategy
public FixedIntervalReconnectStrategy(long interval) 新しいFixedIntervalReconnectStrategy
インスタンスを作成します。- パラメーター:
interval
- 再接続を試行する頻度(ミリ秒)
メソッドの詳細
getTimeToNextAttempt
インターフェースからコピーされた説明:ReconnectStrategy
次の再接続試行に時間を戻します。- 次で指定:
- インターフェース
ReconnectStrategy
のgetTimeToNextAttempt
- パラメーター:
attemptCount
- すでに何回再接続が試みられたか- 戻り値:
- ミリ秒単位の時間、または停止する
null