Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents

Revert

Revert key IN record TO timestamp

Code Block
void revert(String key, long record, long timestamp)

Verify And Set

See http://en.wikipedia.org/wiki/Compare-and-swap

Verify key AS value1 IN record AND SET AS value2 

Code Block
boolean verifyAndSet(String key, TObject expected, long record, TObject replacement)

Get And Increment

See http://en.wikipedia.org/wiki/Fetch-and-add

FETCH key AS value in record AND INCREMENT

Code Block
Number getAndIncrement(String key,long record)
Warning

The first value for key in record (get returns the first value of a fetch) must be a Number, otherwise this method should throw an exception.