Class GsonJsonPayloadConverter

    • Constructor Summary

      Constructors 
      Constructor Description
      GsonJsonPayloadConverter()  
      GsonJsonPayloadConverter​(java.util.function.Function<com.google.gson.GsonBuilder,​com.google.gson.GsonBuilder> builderInterceptor)
      Constructs an instance giving an ability to override Gson initialization.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T fromData​(io.temporal.api.common.v1.Payload content, java.lang.Class<T> valueClass, java.lang.reflect.Type valueType)
      Implements conversion of a single value.
      java.lang.String getEncodingType()
      Each PayloadConverter has an Encoding Type that it handles.
      static PayloadConverter getInstance()  
      java.util.Optional<io.temporal.api.common.v1.Payload> toData​(java.lang.Object value)
      Return empty if value is null.
      • Methods inherited from class java.lang.Object

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

      • GsonJsonPayloadConverter

        public GsonJsonPayloadConverter()
      • GsonJsonPayloadConverter

        public GsonJsonPayloadConverter​(java.util.function.Function<com.google.gson.GsonBuilder,​com.google.gson.GsonBuilder> builderInterceptor)
        Constructs an instance giving an ability to override Gson initialization.
        Parameters:
        builderInterceptor - function that intercepts GsonBuilder construction.