Class VersionMarkerUtils
java.lang.Object
io.temporal.internal.history.VersionMarkerUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateChangeId(String changeId, Integer version) static io.temporal.api.command.v1.RecordMarkerCommandAttributescreateMarkerAttributes(String changeId, Integer version, Boolean upsertVersionSA) static io.temporal.api.common.v1.SearchAttributescreateVersionMarkerSearchAttributes(String newChangeId, Integer newVersion, Map<String, Integer> existingVersions) static StringgetChangeId(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes) static booleangetUpsertVersionSA(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes) static IntegergetVersion(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes) static booleanhasVersionMarkerStructure(io.temporal.api.command.v1.Command command) static booleanhasVersionMarkerStructure(io.temporal.api.history.v1.HistoryEvent event) static StringtryGetChangeIdFromVersionMarkerEvent(io.temporal.api.history.v1.HistoryEvent event)
-
Field Details
-
MARKER_NAME
- See Also:
-
MARKER_CHANGE_ID_KEY
- See Also:
-
MARKER_VERSION_KEY
- See Also:
-
VERSION_SA_UPDATED_KEY
- See Also:
-
TEMPORAL_CHANGE_VERSION
-
CHANGE_VERSION_SEARCH_ATTRIBUTE_SIZE_LIMIT
public static final int CHANGE_VERSION_SEARCH_ATTRIBUTE_SIZE_LIMIT- See Also:
-
-
Constructor Details
-
VersionMarkerUtils
public VersionMarkerUtils()
-
-
Method Details
-
tryGetChangeIdFromVersionMarkerEvent
@Nullable public static String tryGetChangeIdFromVersionMarkerEvent(io.temporal.api.history.v1.HistoryEvent event) - Parameters:
event-HistoryEventto parse- Returns:
- changeId of this version marker if the structure of this event looks like a marker
event,
nullotherwise
-
hasVersionMarkerStructure
public static boolean hasVersionMarkerStructure(io.temporal.api.history.v1.HistoryEvent event) - Parameters:
event-HistoryEventto inspect- Returns:
- true if the event has a correct structure for a version marker
-
hasVersionMarkerStructure
public static boolean hasVersionMarkerStructure(io.temporal.api.command.v1.Command command) - Parameters:
command-Commandto inspect- Returns:
- true if the command has a correct structure for a version marker
-
getChangeId
@Nullable public static String getChangeId(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes) -
getVersion
@Nullable public static Integer getVersion(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes) -
getUpsertVersionSA
@Nullable public static boolean getUpsertVersionSA(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes) -
createMarkerAttributes
-
createChangeId
-
createVersionMarkerSearchAttributes
-