Class NexusTaskHandler.Result
java.lang.Object
io.temporal.internal.worker.NexusTaskHandler.Result
-
Constructor Summary
ConstructorsConstructorDescriptionResult(io.nexusrpc.handler.HandlerException handlerException) Result(io.nexusrpc.handler.HandlerException handlerException, NexusSerializationContext serializationContext) Result(io.temporal.api.nexus.v1.Response response) -
Method Summary
Modifier and TypeMethodDescriptionio.nexusrpc.handler.HandlerExceptionio.temporal.api.nexus.v1.ResponseSerialization context to encodegetHandlerException()with, or null to encode it without one.
-
Constructor Details
-
Result
public Result(@Nonnull io.temporal.api.nexus.v1.Response response) -
Result
public Result(@Nonnull io.nexusrpc.handler.HandlerException handlerException) -
Result
public Result(@Nonnull io.nexusrpc.handler.HandlerException handlerException, @Nullable NexusSerializationContext serializationContext)
-
-
Method Details
-
getSerializationContext
Serialization context to encodegetHandlerException()with, or null to encode it without one. -
getResponse
@Nullable public io.temporal.api.nexus.v1.Response getResponse() -
getHandlerException
@Nullable public io.nexusrpc.handler.HandlerException getHandlerException()
-