Package io.temporal.internal.history
Class LocalActivityMarkerUtils
- java.lang.Object
-
- io.temporal.internal.history.LocalActivityMarkerUtils
-
public class LocalActivityMarkerUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MARKER_ACTIVITY_ID_KEY
static java.lang.String
MARKER_ACTIVITY_INPUT_KEY
static java.lang.String
MARKER_ACTIVITY_RESULT_KEY
static java.lang.String
MARKER_ACTIVITY_TYPE_KEY
static java.lang.String
MARKER_METADATA_KEY
static java.lang.String
MARKER_NAME
static java.lang.String
MARKER_TIME_KEY
-
Constructor Summary
Constructors Constructor Description LocalActivityMarkerUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getActivityId(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes)
static java.lang.String
getActivityTypeName(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes)
static LocalActivityMarkerMetadata
getMetadata(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes)
static io.temporal.api.common.v1.Payloads
getResult(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes)
static java.lang.Long
getTime(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes)
static boolean
hasLocalActivityStructure(io.temporal.api.history.v1.HistoryEvent event)
-
-
-
Field Detail
-
MARKER_NAME
public static final java.lang.String MARKER_NAME
- See Also:
- Constant Field Values
-
MARKER_ACTIVITY_ID_KEY
public static final java.lang.String MARKER_ACTIVITY_ID_KEY
- See Also:
- Constant Field Values
-
MARKER_ACTIVITY_TYPE_KEY
public static final java.lang.String MARKER_ACTIVITY_TYPE_KEY
- See Also:
- Constant Field Values
-
MARKER_ACTIVITY_RESULT_KEY
public static final java.lang.String MARKER_ACTIVITY_RESULT_KEY
- See Also:
- Constant Field Values
-
MARKER_ACTIVITY_INPUT_KEY
public static final java.lang.String MARKER_ACTIVITY_INPUT_KEY
- See Also:
- Constant Field Values
-
MARKER_TIME_KEY
public static final java.lang.String MARKER_TIME_KEY
- See Also:
- Constant Field Values
-
MARKER_METADATA_KEY
public static final java.lang.String MARKER_METADATA_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasLocalActivityStructure
public static boolean hasLocalActivityStructure(io.temporal.api.history.v1.HistoryEvent event)
- Parameters:
event
-HistoryEvent
to inspect- Returns:
- true if the event has a correct structure for a local activity
-
getActivityId
@Nullable public static java.lang.String getActivityId(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes)
-
getActivityTypeName
@Nullable public static java.lang.String getActivityTypeName(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes)
-
getResult
@Nullable public static io.temporal.api.common.v1.Payloads getResult(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes)
-
getTime
@Nullable public static java.lang.Long getTime(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes)
-
getMetadata
@Nullable public static LocalActivityMarkerMetadata getMetadata(io.temporal.api.history.v1.MarkerRecordedEventAttributes markerAttributes)
-
-