クラス FixedIntervalReconnectStrategy

java.lang.ObjectSE
org.springframework.messaging.tcp.FixedIntervalReconnectStrategy
実装されたすべてのインターフェース:
ReconnectStrategy

public class FixedIntervalReconnectStrategy extends ObjectSE implements ReconnectStrategy
一定の間隔で再接続を試行する簡単な方法。
導入:
4.0
作成者:
Rossen Stoyanchev
  • コンストラクターの詳細

    • FixedIntervalReconnectStrategy

      public FixedIntervalReconnectStrategy(long interval)
      新しい FixedIntervalReconnectStrategy インスタンスを作成します。
      パラメーター:
      interval - 再接続を試行する頻度(ミリ秒)
  • メソッドの詳細

    • getTimeToNextAttempt

      public LongSE getTimeToNextAttempt(int attemptCount)
      インターフェースからコピーされた説明: ReconnectStrategy
      次の再接続試行に時間を戻します。
      次で指定:
      インターフェース ReconnectStrategygetTimeToNextAttempt 
      パラメーター:
      attemptCount - すでに何回再接続が試みられたか
      戻り値:
      ミリ秒単位の時間、または停止する null