- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Attempt a retryable operation.
-
Method Details
-
attempt
Optional<RESULT> attempt(long nanosRemaining)
throws org.apache.polaris.persistence.nosql.api.commit.CommitException
Attempt a retryable operation.
- Returns:
- Successful attempts return a non-empty
Optional containing the result. An
empty optional indicates that a retry should be attempted.
- Throws:
org.apache.polaris.persistence.nosql.api.commit.CommitException - Instances of this class let the whole commit operation abort.