private void enableRetryMode()

in client/src/main/java/co/elastic/opamp/client/request/service/WebSocketRequestService.java [163:172]


  private void enableRetryMode(Duration retryAfter) {
    if (retryConnectionModeEnabled.compareAndSet(false, true)) {
      stopWebSocket();
      if (retryAfter != null && periodicRetryDelay instanceof AcceptsDelaySuggestion) {
        ((AcceptsDelaySuggestion) periodicRetryDelay).suggestDelay(retryAfter);
      }
      executor = PeriodicTaskExecutor.create(periodicRetryDelay);
      executor.start(this);
    }
  }