Class MarkerUtils


  • public class MarkerUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      MarkerUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T getValueFromMarker​(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes, java.lang.String key, java.lang.Class<T> simpleValueType)  
      static boolean verifyMarkerName​(io.temporal.api.history.v1.HistoryEvent event, java.lang.String markerName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • VERSION_MARKER_NAME

        public static final java.lang.String VERSION_MARKER_NAME
        See Also:
        Constant Field Values
      • DATA_CONVERTER

        public static final DataConverter DATA_CONVERTER
    • Constructor Detail

      • MarkerUtils

        public MarkerUtils()
    • Method Detail

      • verifyMarkerName

        public static boolean verifyMarkerName​(io.temporal.api.history.v1.HistoryEvent event,
                                               java.lang.String markerName)
        Parameters:
        event - HistoryEvent to inspect
        markerName - expected marker name
        Returns:
        true if the event has a correct structure for a marker and an expected marker name
      • getValueFromMarker

        public static <T> T getValueFromMarker​(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes,
                                               java.lang.String key,
                                               java.lang.Class<T> simpleValueType)
        Type Parameters:
        T -
        Parameters:
        markerAttributes -
        key -
        simpleValueType -
        Returns: