I know to print number of counts inside retryable method. how to print delay sequence inside retryable method
@Retryable( value = SQLException.class,
maxAttempts = 3, backoff = @Backoff(delay = 1000))
void testMethod(String abc) throws SQLException{
log.info("Retry Number : {} and delay: ",RetrySynchronizationManager.getContext().getRetryCount());
};
expected output: Retry Number: 1 delay : 1000 Retry Number: 2 delay : 1000 Retry Number: 3 delay : 1000
没有恢复延迟的机制。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.