|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.astyanax.ThreadLocalMutationBatchManager
public class ThreadLocalMutationBatchManager
Simple mutation batch using thread local storage to keeps track of one mutation per thread
| Constructor Summary | |
|---|---|
ThreadLocalMutationBatchManager(Keyspace keyspace,
ConsistencyLevel cl)
|
|
ThreadLocalMutationBatchManager(Keyspace keyspace,
ConsistencyLevel cl,
com.netflix.astyanax.retry.RetryPolicy retryPolicy)
|
|
| Method Summary | |
|---|---|
void |
commitSharedMutationBatch()
Commit all mutations on the batch |
void |
discard()
Discard all mutations on the batch |
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 ThreadLocalMutationBatchManager(Keyspace keyspace,
ConsistencyLevel cl)
public ThreadLocalMutationBatchManager(Keyspace keyspace,
ConsistencyLevel cl,
com.netflix.astyanax.retry.RetryPolicy retryPolicy)
| Method Detail |
|---|
public MutationBatch getSharedMutationBatch()
MutationBatchManager
getSharedMutationBatch in interface MutationBatchManagerpublic MutationBatch getNewMutationBatch()
MutationBatchManager
getNewMutationBatch in interface MutationBatchManager
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 MutationBatchManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||