Class RetriableAccessChecker


  • public final class RetriableAccessChecker
    extends java.lang.Object
    A utility class for performing access check in contexts where operations may have to be re-tried due to optimistic locking or similar mechanisms. Each attempt forms a new batch of access checks, but they are not re-validated on subsequent attempts unless the new batch of checks is different from the already validated one. The order of checks matters.
    • Constructor Detail

      • RetriableAccessChecker

        public RetriableAccessChecker​(java.util.function.Supplier<BatchAccessChecker> validator)