Retry Time Cycle Configuration

Hi Team,
we are working on java delegate class where i am calling external api our requirement is when external api fail we want to retry 3 times so where we can configure or how we can achieved . any example

@Krishan_Pratap_Singh Refer the below docs:

https://docs.camunda.org/manual/7.15/user-guide/process-engine/the-job-executor/#failed-jobs

https://docs.camunda.org/manual/7.15/user-guide/process-engine/the-job-executor/#retry-time-cycle-configuration

https://docs.camunda.org/manual/7.15/user-guide/process-engine/error-handling/#retry-failed-jobs

@aravindhrs I tried first two link.
I tried retry time cycle configuration where I tried maximum no of retries and delay of retry but what happened in delegation class also through the exception same no of what we retries and if delegate class not thorough the exception then retry mechanism not working…is there any example

@aravindhrs is there any way we can count the retry…or find how many times retry done ?