Is it possible to set jdbc input plugin retry counts?

As title, are there any jdbc input configuration options to set retry counts? Say, when jdbc unable connect to sql server, it will retry 3 times and exit.

I have tried connection_retry_attempts with value 3, it is expected to retry 3 times and stop, but it keeps retring.

I have also tried jdbc_validate_connection but no luck.

Any ideas will be appreciated.