Interface SnapshotCapable
- All Known Subinterfaces:
AggregatedPoint<V,A>, AtomicPoint<V>, DataPoint<V>
- All Known Implementing Classes:
AggregatedDataPoint
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanWhether a snapshot timestamp is present.Returns the snapshot timestamp, or empty if this is not a snapshot.default SnapshotCapableReturns a copy that is a snapshot at the current time.withSnapshot(Instant timestamp) Returns a copy that is a snapshot at the given time.
-
Method Details
-
snapshotTimestamp
-
isSnapshot
default boolean isSnapshot()Whether a snapshot timestamp is present. -
withSnapshot
Returns a copy that is a snapshot at the current time. -
withSnapshot
Returns a copy that is a snapshot at the given time.- Parameters:
timestamp- the snapshot time
-