com.netflix.astyanax.recipes.uniqueness
Class ColumnPrefixUniquenessConstraint<K>
java.lang.Object
com.netflix.astyanax.recipes.uniqueness.ColumnPrefixUniquenessConstraint<K>
- All Implemented Interfaces:
- UniquenessConstraint
public class ColumnPrefixUniquenessConstraint<K>
- extends Object
- implements UniquenessConstraint
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColumnPrefixUniquenessConstraint
public ColumnPrefixUniquenessConstraint(Keyspace keyspace,
ColumnFamily<K,String> columnFamily,
K key)
withTtl
public ColumnPrefixUniquenessConstraint<K> withTtl(Integer ttl)
withConsistencyLevel
public ColumnPrefixUniquenessConstraint<K> withConsistencyLevel(ConsistencyLevel consistencyLevel)
acquire
public void acquire()
throws NotUniqueException,
Exception
- Description copied from interface:
UniquenessConstraint
- 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.
- Specified by:
acquire
in interface UniquenessConstraint
- Throws:
NotUniqueException
Exception
release
public void release()
throws Exception
- Description copied from interface:
UniquenessConstraint
- Release the uniqueness lock for this row.
- Specified by:
release
in interface UniquenessConstraint
- Throws:
Exception
Copyright © 2012. All Rights Reserved.