Interface PreCommitRequirementValidator
-
public interface PreCommitRequirementValidator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
throwIfImmutableTsOrCommitLocksExpired(com.palantir.lock.v2.LockToken commitLocksToken)
Throws aTransactionFailedException
if the immutable timestamp lock or commit locks have expired.void
throwIfPreCommitConditionInvalid(long timestamp)
Throws aTransactionFailedException
if a user-provided pre-commit condition is no longer valid.void
throwIfPreCommitConditionInvalidAtCommitOnWriteTransaction(Map<TableReference,? extends Map<Cell,byte[]>> mutations, long timestamp)
Throws aTransactionFailedException
if a user-provided pre-commit condition is no longer valid, considering the mutations that are about to be committed.void
throwIfPreCommitRequirementsNotMet(com.palantir.lock.v2.LockToken commitLocksToken, long timestamp)
Throws aTransactionFailedException
if the transaction can no longer commit; this can be because a user pre-commit condition is no longer valid, or possibly because of other internal state such as commit locks having expired.
-
-
-
Method Detail
-
throwIfPreCommitConditionInvalid
void throwIfPreCommitConditionInvalid(long timestamp)
Throws aTransactionFailedException
if a user-provided pre-commit condition is no longer valid.
-
throwIfPreCommitConditionInvalidAtCommitOnWriteTransaction
void throwIfPreCommitConditionInvalidAtCommitOnWriteTransaction(Map<TableReference,? extends Map<Cell,byte[]>> mutations, long timestamp)
Throws aTransactionFailedException
if a user-provided pre-commit condition is no longer valid, considering the mutations that are about to be committed.
-
throwIfPreCommitRequirementsNotMet
void throwIfPreCommitRequirementsNotMet(@Nullable com.palantir.lock.v2.LockToken commitLocksToken, long timestamp)
Throws aTransactionFailedException
if the transaction can no longer commit; this can be because a user pre-commit condition is no longer valid, or possibly because of other internal state such as commit locks having expired.
-
throwIfImmutableTsOrCommitLocksExpired
void throwIfImmutableTsOrCommitLocksExpired(@Nullable com.palantir.lock.v2.LockToken commitLocksToken)
Throws aTransactionFailedException
if the immutable timestamp lock or commit locks have expired.
-
-