クラス 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