public class VersionMarkerUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MARKER_CHANGE_ID_KEY |
static java.lang.String |
MARKER_VERSION_KEY |
Constructor and Description |
---|
VersionMarkerUtils() |
Modifier and Type | Method and Description |
---|---|
static io.temporal.api.command.v1.RecordMarkerCommandAttributes |
createMarkerAttributes(java.lang.String changeId,
java.lang.Integer version) |
static java.lang.String |
getChangeId(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes) |
static java.lang.Integer |
getVersion(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes) |
static boolean |
hasVersionMarkerStructure(io.temporal.api.history.v1.HistoryEvent event) |
static java.lang.String |
tryGetChangeIdFromVersionMarkerEvent(io.temporal.api.history.v1.HistoryEvent event) |
public static final java.lang.String MARKER_CHANGE_ID_KEY
public static final java.lang.String MARKER_VERSION_KEY
@Nullable public static java.lang.String tryGetChangeIdFromVersionMarkerEvent(io.temporal.api.history.v1.HistoryEvent event)
event
- HistoryEvent
to parsenull
otherwisepublic static boolean hasVersionMarkerStructure(io.temporal.api.history.v1.HistoryEvent event)
event
- HistoryEvent
to inspect@Nullable public static java.lang.String getChangeId(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes)
@Nullable public static java.lang.Integer getVersion(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes)
public static io.temporal.api.command.v1.RecordMarkerCommandAttributes createMarkerAttributes(java.lang.String changeId, java.lang.Integer version)