Retries for compensation flow

Hello!
Can you pls share the java code snippet in camunda saga for retrying activity and compensation in case of http timeout / connection timeout.

thanks and regards,
Naveen