Interface ValueAndBound<T>
-
@Immutable public interface ValueAndBound<T>
A pair of an optionally present value and a bound indicating that the value is valid for events at timestamps up to the bound, inclusive. In some embodiments this bound may be an AtlasDB timestamp. If a decision is to be made based on an event (such as a transaction) happening at some timestamp, then this value should only be used to make the decision if it is still valid at that timestamp (i.e. the bound is greater than or equal to that timestamp).
-
-
Field Summary
Fields Modifier and Type Field Description static long
INVALID_BOUND
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description long
bound()
static <T> ValueAndBound<T>
of(Optional<T> value, long bound)
static <T> ValueAndBound<T>
of(T value, long bound)
Optional<T>
value()
-
-
-
Field Detail
-
INVALID_BOUND
static final long INVALID_BOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
bound
@Parameter long bound()
-
of
static <T> ValueAndBound<T> of(Optional<T> value, long bound)
-
of
static <T> ValueAndBound<T> of(T value, long bound)
-
-