I have this piece of code
@Retryable(maxAttempts = 3, stateful = true, include = ServiceUnavailableException.class,
exclude = URISyntaxException.class, backoff = @Backoff(delay = 1000, multiplier = 2) )
public void testThatService(String serviceAccountId)
throws ServiceUnavailableException, URISyntaxException {
// some implementation here}
Is there a way to make maxAttempts, delay and multiplier customizable with @Value? Or is there any other approach that allows you to customize such fields inside annotations?
source
share