Class 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 a Map<String, Object> into a Map<String, Payload> by applying specified converter on each value.
      static io.temporal.api.common.v1.Header toHeaderGrpc​(Header header, Header overrides)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 a Map<String, Object> into a Map<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.