A function that would like to take a snapshot of data guarded by a retry loop with data consistency tests.
Method Details
call
booleancall(boolean usePrev,
long beforeClockValue)
A function that would like to take a snapshot of data guarded by a retry loop with data consistency tests.
Parameters:
usePrev - Whether data from the previous cycle should be used (otherwise use this cycle)
beforeClockValue - The clock value that we captured before the function began; the function can use this
value to bail out early if it notices something has gone wrong; -1L
for static snapshots
Returns:
true if the function was successful, false if it should be retried