Package io.temporal.internal.common
Class HeaderUtils
- java.lang.Object
-
- io.temporal.internal.common.HeaderUtils
-
public class HeaderUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,io.temporal.api.common.v1.Payload>
intoPayloadMap(DataConverter converter, java.util.Map<java.lang.String,java.lang.Object> map)
Converts aMap<String, Object>
into aMap<String, Payload>
by applying specified converter on each value.static io.temporal.api.common.v1.Header
toHeaderGrpc(Header header, Header overrides)
-
-
-
Method Detail
-
toHeaderGrpc
public static io.temporal.api.common.v1.Header toHeaderGrpc(Header header, @Nullable Header overrides)
-
intoPayloadMap
public static java.util.Map<java.lang.String,io.temporal.api.common.v1.Payload> intoPayloadMap(DataConverter converter, java.util.Map<java.lang.String,java.lang.Object> map)
Converts aMap<String, Object>
into aMap<String, Payload>
by applying specified converter on each value. This util should be used for things like search attributes and memo that need to be converted back from bytes on the server.
-
-