Created
December 5, 2021 08:07
-
-
Save HVHO/22a035816f597b8afbc5c17c266c6467 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Service | |
class RetryableService { | |
@Autowired | |
private lateinit var retryTemplate: RetryTemplate | |
fun run() : Unit { | |
retryTemplate.execute<Unit, Throwable> { | |
action() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment