类 FixedIntervalReconnectStrategy
- java.lang.Object
- org.springframework.messaging.tcp.FixedIntervalReconnectStrategy
- 所有已实现的接口:
ReconnectStrategy
public class FixedIntervalReconnectStrategy extends Object implements ReconnectStrategy
A simple strategy for making reconnect attempts at a fixed interval.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
构造器详细资料
FixedIntervalReconnectStrategy
public FixedIntervalReconnectStrategy(long interval)
- 参数:
interval
- the frequency, in millisecond, at which to try to reconnect
方法详细资料
getTimeToNextAttempt
public Long getTimeToNextAttempt(int attemptCount)
从接口复制的说明:ReconnectStrategy
Return the time to the next attempt to reconnect.- 指定者:
getTimeToNextAttempt
在接口中ReconnectStrategy
- 参数:
attemptCount
- how many reconnect attempts have been made already- 返回:
- the amount of time in milliseconds or
null
to stop