BAEL-20262: Migrate spring-scheduling module to the com.baeldung package

This commit is contained in:
Krzysztof Woyke
2019-12-20 12:47:57 +01:00
parent 5c883d3d11
commit e738f59ea7
23 changed files with 29 additions and 40 deletions

View File

@@ -0,0 +1,21 @@
package com.baeldung.springretry;
import java.sql.SQLException;
import org.springframework.retry.annotation.Backoff;
import org.springframework.retry.annotation.Recover;
import org.springframework.retry.annotation.Retryable;
public interface MyService {
@Retryable
void retryService();
@Retryable(value = { SQLException.class }, maxAttempts = 2, backoff = @Backoff(delay = 5000))
void retryServiceWithRecovery(String sql) throws SQLException;
@Recover
void recover(SQLException e, String sql);
void templateRetryService();
}