
Package ca.uhn.fhir.jpa.interceptor
Class UserRequestRetryVersionConflictsInterceptor
- java.lang.Object
-
- ca.uhn.fhir.jpa.interceptor.UserRequestRetryVersionConflictsInterceptor
-
public class UserRequestRetryVersionConflictsInterceptor extends Object
This interceptor looks for a header on incoming requests calledX-Retry-On-Version-Conflict
and if present, it will instruct the server to automatically retry JPA server operations that would have otherwise failed with aResourceVersionConflictException
(HTTP 409).The format of the header is:
X-Retry-On-Version-Conflict: retry; max-retries=100
-
-
Field Summary
Fields Modifier and Type Field Description static String
HEADER_NAME
static String
MAX_RETRIES
static String
RETRY
-
Constructor Summary
Constructors Constructor Description UserRequestRetryVersionConflictsInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ca.uhn.fhir.jpa.api.model.ResourceVersionConflictResolutionStrategy
check(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
-
-
-
Field Detail
-
HEADER_NAME
public static final String HEADER_NAME
- See Also:
- Constant Field Values
-
MAX_RETRIES
public static final String MAX_RETRIES
- See Also:
- Constant Field Values
-
RETRY
public static final String RETRY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UserRequestRetryVersionConflictsInterceptor
public UserRequestRetryVersionConflictsInterceptor()
-
-
Method Detail
-
check
public ca.uhn.fhir.jpa.api.model.ResourceVersionConflictResolutionStrategy check(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
-
-