Package com.illumon.iris.db.v2.remote
Interface ConstructSnapshot.SnapshotFunction
- Enclosing class:
- ConstructSnapshot
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
call
(boolean usePrev, long beforeClockValue) A function that would like to take a snapshot of data guarded by a retry loop with data consistency tests.
-
Method Details
-
call
boolean call(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- Returns:
- true if the function was successful, false if it should be retried
-