public interface UniquenessConstraint
| Modifier and Type | Method and Description |
|---|---|
void |
acquire()
Acquire the row(s) for uniqueness.
|
void |
acquireAndApplyMutation(com.google.common.base.Function<com.netflix.astyanax.MutationBatch,java.lang.Boolean> callback)
Acquire the uniqueness constraint and call the mutate callback to fill a mutation.
|
void |
acquireAndMutate(com.netflix.astyanax.MutationBatch mutation)
Deprecated.
This method doesn't actually work because the MutationBatch timestamp being behind
|
void |
release()
Release the uniqueness lock for this row.
|
void acquire()
throws NotUniqueException,
java.lang.Exception
NotUniqueExceptionjava.lang.Exceptionvoid release()
throws java.lang.Exception
java.lang.Exception@Deprecated
void acquireAndMutate(com.netflix.astyanax.MutationBatch mutation)
throws NotUniqueException,
java.lang.Exception
mutation - NotUniqueExceptionjava.lang.Exceptionvoid acquireAndApplyMutation(com.google.common.base.Function<com.netflix.astyanax.MutationBatch,java.lang.Boolean> callback)
throws NotUniqueException,
java.lang.Exception
callback - NotUniqueExceptionjava.lang.Exception