org.springframework.messaging.tcp

## Interface ReconnectStrategy

- All Known Implementing Classes:
    FixedIntervalReconnectStrategy

      public interface ReconnectStrategy

  A contract to determine the frequency of reconnect attempts after connection failure.
  Since:
    4.0
  Author:
    Rossen Stoyanchev

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Long` | `getTimeToNextAttempt(int attemptCount)` Return the time to the next attempt to reconnect.

- - ### Method Detail

    - #### getTimeToNextAttempt

          Long getTimeToNextAttempt(int attemptCount)

      Return the time to the next attempt to reconnect.
      Parameters:
        `attemptCount` - how many reconnect attempts have been made already
      Returns:
        the amount of time in milliseconds or `null` to stop