public interface Temporal
Modifier and Type | Method and Description |
---|---|
Instant |
getTimestamp()
Temporal state describing the time at which this item was last updated.
|
void |
setTimestamp(Instant timestamp)
Temporal state describing the time at which this item was last updated.
|
Instant getTimestamp()
Temporal
interface and is primarily used during consumption of messages regarding
changes in state to this domain. For example, a service consuming a change notification for
this domain can compare the current persisted timestamp to this timestamp to determine if it
already has a newer version, in which case, it can ignore. This is primarily a measure to
ensure that ordering is not required for messages related to state change.void setTimestamp(Instant timestamp)
Temporal
interface and is primarily used during consumption of messages regarding
changes in state to this domain. For example, a service consuming a change notification for
this domain can compare the current persisted timestamp to this timestamp to determine if it
already has a newer version, in which case, it can ignore. This is primarily a measure to
ensure that ordering is not required for messages related to state change.timestamp
- Temporal state describing the time at which this item was last updatedCopyright © 2021. All rights reserved.