|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.client.UpdateAction<K,V>
public abstract class UpdateAction<K,V>
An update action such as a read-modify-store cycle. This is meant to be used as a callback interface to perform a data modification that might involve obsolete data. The operation will be repeated until it succeeds. The update action must be idempotent since it may be called multiple times.
| Constructor Summary | |
|---|---|
UpdateAction()
|
|
| Method Summary | |
|---|---|
void |
rollback()
A hook for the user to override with any rollback actions they want performed when the update fails (say due to an exception or due to too many ObsoleteVersionExceptions). |
abstract void |
update(StoreClient<K,V> storeClient)
Apply the update operation to the given store client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpdateAction()
| Method Detail |
|---|
public abstract void update(StoreClient<K,V> storeClient)
storeClient - The store client to usepublic void rollback()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||