Skip to content
Snippets Groups Projects
Verified Commit 1b028101 authored by Hugo Renard's avatar Hugo Renard
Browse files

only retry on network issues

parent f0e452c2
No related branches found
No related tags found
No related merge requests found
Pipeline #913 passed with stage
in 28 seconds
......@@ -2,6 +2,7 @@ package sh.libre.scim.core;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.ws.rs.ProcessingException;
import javax.ws.rs.client.Client;
import com.unboundid.scim2.client.ScimService;
......@@ -44,6 +45,7 @@ public class ScimClient {
RetryConfig retryConfig = RetryConfig.custom()
.maxAttempts(10)
.intervalFunction(IntervalFunction.ofExponentialBackoff())
.retryExceptions(ProcessingException.class)
.build();
registry = RetryRegistry.of(retryConfig);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment