Class VersionMarkerUtils

java.lang.Object
io.temporal.internal.history.VersionMarkerUtils

public class VersionMarkerUtils extends Object
  • Field Details

  • Constructor Details

    • VersionMarkerUtils

      public VersionMarkerUtils()
  • Method Details

    • tryGetChangeIdFromVersionMarkerEvent

      @Nullable public static String tryGetChangeIdFromVersionMarkerEvent(io.temporal.api.history.v1.HistoryEvent event)
      Parameters:
      event - HistoryEvent to parse
      Returns:
      changeId of this version marker if the structure of this event looks like a marker event, null otherwise
    • hasVersionMarkerStructure

      public static boolean hasVersionMarkerStructure(io.temporal.api.history.v1.HistoryEvent event)
      Parameters:
      event - HistoryEvent to 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 - Command to 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

      public static io.temporal.api.command.v1.RecordMarkerCommandAttributes createMarkerAttributes(String changeId, Integer version, Boolean upsertVersionSA)
    • createChangeId

      public static String createChangeId(String changeId, Integer version)
    • createVersionMarkerSearchAttributes

      public static io.temporal.api.common.v1.SearchAttributes createVersionMarkerSearchAttributes(String newChangeId, Integer newVersion, Map<String,Integer> existingVersions)