Interface CommitOutcomeResolver
@Internal
public interface CommitOutcomeResolver
Resolves a transaction recovery outcome for a transaction using a vendor-specific mechanism.
- Since:
- 5.2
-
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectcaptureRecoveryToken(@NonNull TransactionStatus<?> status) Capture a vendor-specific token from the active transaction before commit.@NonNull CommitOutcomeResolve the outcome for the previously captured token.
-
Method Details
-
captureRecoveryToken
Capture a vendor-specific token from the active transaction before commit.- Parameters:
status- The transaction status- Returns:
- A vendor-specific token, or
nullif capture is not supported
-
resolve
Resolve the outcome for the previously captured token.- Parameters:
token- The token captured bycaptureRecoveryToken(TransactionStatus)- Returns:
- The recovery outcome
-