voldemort.client
Class UpdateAction<K,V>

java.lang.Object
  extended by voldemort.client.UpdateAction<K,V>

public abstract class UpdateAction<K,V>
extends java.lang.Object

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

UpdateAction

public UpdateAction()
Method Detail

update

public abstract void update(StoreClient<K,V> storeClient)
Apply the update operation to the given store client.

Parameters:
storeClient - The store client to use

rollback

public 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).



Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu