Package org.projectnessie.services.authz
Class RetriableAccessChecker
- java.lang.Object
-
- org.projectnessie.services.authz.RetriableAccessChecker
-
public final class RetriableAccessChecker extends java.lang.ObjectA utility class for performing access check in contexts where operations may have to be re-tried due to optimistic locking or similar mechanisms. Eachattemptforms 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 Summary
Constructors Constructor Description RetriableAccessChecker(java.util.function.Supplier<BatchAccessChecker> validator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchAccessCheckernewAttempt()
-
-
-
Constructor Detail
-
RetriableAccessChecker
public RetriableAccessChecker(java.util.function.Supplier<BatchAccessChecker> validator)
-
-
Method Detail
-
newAttempt
public BatchAccessChecker newAttempt()
-
-