spring-retry
CommunityManage retries for Spring applications with declarative and imperative strategies.
Authorlvoxx
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill simplifies error handling in Spring applications by managing retries for failed operations declaratively or imperatively.
Core Features & Use Cases
- Declarative Retry: Use
@Retryableannotations to automatically retry methods when exceptions occur. - Imperative Retry: Employ
RetryTemplatefor explicit retry control over operations. - Backoff Policies: Apply fixed, exponential, or random backoff strategies between retries.
- Circuit Breaker: Implement the circuit breaker pattern to handle service failures and prevent cascading failures.
- Recovery Methods: Specify fallback methods to recover from failed operations.
- Metrics Integration: Integrate with Micrometer for monitoring retry behavior.
- Use Case: A service that periodically checks for updates may benefit from retry logic to handle transient network issues.
Quick Start
Annotate a method with @Retryable to retry on failures: java @Retryable(RetryFor = RemoteAccessException.class) public void fetch() { ... }
Dependency Matrix
Required Modules
spring-retry
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: spring-retry Download link: https://github.com/lvoxx/simple-shorten-url/archive/main.zip#spring-retry Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.