rrezartprebreza/spring-boot-skills / skills/spring-boot-4/resilience-retry
resilience-retry
VerifiedUse when adding retries, backoff, or concurrency limits to Spring Boot 4 / Spring Framework 7 code with core Retryable and ConcurrencyLimit support. Covers enablement, backoff, proxy limits, and behavior after retries are exhausted.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.4 KB |
| agents/openai.yaml | config | 202 B |
| examples/bad-payment-client.java | other | 160 B |
| examples/good-payment-client.java | other | 172 B |
| templates/CatalogRetryService.java | other | 1.2 KB |
templates/CatalogRetryService.java
View on GitHubpackage com.example.clients;
import java.util.UUID;
import java.util.concurrent.CancellationException;
import org.springframework.context.annotation.Configuration;
import org.springframework.resilience.annotation.EnableResilientMethods;
import org.springframework.resilience.annotation.Retryable;
/** Bounded retry of an idempotent read. Register as a bean and invoke through its proxy. */
public class CatalogRetryService {
private final CatalogTransport transport;
public CatalogRetryService(CatalogTransport transport) { this.transport = transport; }
@Retryable(includes = TransientCatalogException.class, maxRetries = 2,
delay = 50, multiplier = 2, maxDelay = 100)
public String find(UUID id) {
if (Thread.currentThread().isInterrupted()) throw new CancellationException("Interrupted");
return transport.fetch(id);
}
@FunctionalInterface
public interface CatalogTransport { String fetch(UUID id); }
public static class TransientCatalogException extends RuntimeException {
public TransientCatalogException(Throwable cause) { super("Catalog temporarily unavailable", cause); }
}
@Configuration(proxyBeanMethods = false)
@EnableResilientMethods
public static class RetryConfiguration {}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |