Class UserRequestRetryVersionConflictsInterceptor


  • public class UserRequestRetryVersionConflictsInterceptor
    extends Object
    This interceptor looks for a header on incoming requests called X-Retry-On-Version-Conflict and if present, it will instruct the server to automatically retry JPA server operations that would have otherwise failed with a ResourceVersionConflictException (HTTP 409).

    The format of the header is:
    X-Retry-On-Version-Conflict: retry; max-retries=100