Package io.temporal.internal.history
Class MarkerUtils
- java.lang.Object
-
- io.temporal.internal.history.MarkerUtils
-
public class MarkerUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static DataConverter
DATA_CONVERTER
static java.lang.String
VERSION_MARKER_NAME
-
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)
-
-
-
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
-
-
Method Detail
-
verifyMarkerName
public static boolean verifyMarkerName(io.temporal.api.history.v1.HistoryEvent event, java.lang.String markerName)
- Parameters:
event
-HistoryEvent
to inspectmarkerName
- 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:
-
-