only retry on network issues
This commit is contained in:
parent
f0e452c21a
commit
1b0281014e
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue