Class PropagatedNexusSerializationContext

java.lang.Object
io.temporal.internal.nexus.PropagatedNexusSerializationContext

public final class PropagatedNexusSerializationContext extends Object
Converts between NexusSerializationContext and the PropagatedSerializationContext the server stores on executions started by a Nexus operation handler.

When a Nexus handler starts a workflow, sends a workflow update or starts a standalone activity, the SDK sends the handler's serialization context with the request. The server stores it and returns it to workers and to clients reading the execution's result, so the result and failure are encoded and decoded with the same context. See NexusSerializationContext for which payloads use it.

  • Method Details

    • current

      @Nullable public static io.temporal.api.nexus.v1.PropagatedSerializationContext current()
      The serialization context of the Nexus operation being handled on the current thread, in the form sent with start requests, or null if there is no Nexus task in scope or its service and operation are not known yet.
    • toProto

      @Nonnull public static io.temporal.api.nexus.v1.PropagatedSerializationContext toProto(@Nonnull NexusSerializationContext context)
    • fromProto

      @Nonnull public static NexusSerializationContext fromProto(@Nonnull io.temporal.api.nexus.v1.PropagatedSerializationContext context)