code: public RetryPolicy<R> onRetriesExceeded(CheckedConsumer<? extends ExecutionCompletedEvent<R>> listener) {
      retriesExceededListener = EventListener.of(Assert.notNull(listener, "listener"));
      return this;
    }
docs: Registers the {@code listener} to be called when an execution fails and the {@link RetryPolicy#withMaxRetries(int)
  max retry attempts} or {@link RetryPolicy#withMaxDuration(Duration) max duration} are exceeded.