|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.astyanax.MultiMutationBatchManager
public class MultiMutationBatchManager
Extension to mutation batch which allows for multiple 'named' mutation batches. The purpose of this manager is to allow mutations to be executed in order of batch creation so that subsequent mutations aren't attempted if there is a failure.
| Constructor Summary | |
|---|---|
MultiMutationBatchManager(Keyspace keyspace,
ConsistencyLevel cl)
|
|
| Method Summary | |
|---|---|
void |
commitSharedMutationBatch()
Commit all mutations on the batch |
void |
discard()
Discard all mutations on the batch |
MutationBatch |
getNamedMutationBatch(java.lang.String name)
|
MutationBatch |
getNewMutationBatch()
Get a one time mutation batch |
MutationBatch |
getSharedMutationBatch()
Get or create a new mutation batch. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiMutationBatchManager(Keyspace keyspace,
ConsistencyLevel cl)
| Method Detail |
|---|
public MutationBatch getSharedMutationBatch()
MutationBatchManager
getSharedMutationBatch in interface MutationBatchManagerpublic MutationBatch getNamedMutationBatch(java.lang.String name)
public void commitSharedMutationBatch()
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
MutationBatchManager
commitSharedMutationBatch in interface MutationBatchManagercom.netflix.astyanax.connectionpool.exceptions.ConnectionExceptionpublic void discard()
MutationBatchManager
discard in interface MutationBatchManagerpublic MutationBatch getNewMutationBatch()
MutationBatchManager
getNewMutationBatch in interface MutationBatchManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||