com.netflix.astyanax.recipes.uniqueness
Interface UniquenessConstraint

All Known Implementing Classes:
ColumnPrefixUniquenessConstraint, MultiRowUniquenessConstraint, RowUniquenessConstraint

public interface UniquenessConstraint


Method Summary
 void acquire()
          Acquire the row(s) for uniqueness.
 void release()
          Release the uniqueness lock for this row.
 

Method Detail

acquire

void acquire()
             throws NotUniqueException,
                    Exception
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

release

void release()
             throws Exception
Release the uniqueness lock for this row.

Throws:
Exception


Copyright © 2012. All Rights Reserved.