public interface

UniquenessConstraint

com.netflix.astyanax.recipes.uniqueness.UniquenessConstraint
Known Indirect Subclasses

Summary

Public Methods
abstract void acquire()
Acquire the row(s) for uniqueness.
abstract void acquireAndMutate(MutationBatch mutation)
Acquire the uniqueness constraint and apply the final mutation if the row if found to be unique
abstract void release()
Release the uniqueness lock for this row.

Public Methods

public abstract void acquire ()

Acquire the row(s) for uniqueness. Call release() when the uniqueness on the row(s) is no longer needed, such as when deleting the rows.

Throws
NotUniqueException
Exception
NotUniqueException

public abstract void acquireAndMutate (MutationBatch mutation)

Acquire the uniqueness constraint and apply the final mutation if the row if found to be unique

Throws
NotUniqueException
Exception
NotUniqueException

public abstract void release ()

Release the uniqueness lock for this row. Only call this when you no longer need the uniqueness lock

Throws
Exception