Class ReflectiveWorkflowProvider<S,W extends kalix.javasdk.workflow.Workflow<S>>

Object
kalix.javasdk.workflow.ReflectiveWorkflowProvider<S,W>
All Implemented Interfaces:
kalix.javasdk.workflow.WorkflowProvider<S,W>

public class ReflectiveWorkflowProvider<S,W extends kalix.javasdk.workflow.Workflow<S>> extends Object implements kalix.javasdk.workflow.WorkflowProvider<S,W>
  • Constructor Details

    • ReflectiveWorkflowProvider

      public ReflectiveWorkflowProvider(Class<W> workflowClass, kalix.javasdk.impl.JsonMessageCodec messageCodec, Function<kalix.javasdk.workflow.WorkflowContext,W> factory, kalix.javasdk.workflow.WorkflowOptions options)
  • Method Details

    • of

      public static <S, W extends kalix.javasdk.workflow.Workflow<S>> ReflectiveWorkflowProvider<S,W> of(Class<W> cls, kalix.javasdk.impl.JsonMessageCodec messageCodec, Function<kalix.javasdk.workflow.WorkflowContext,W> factory)
    • typeId

      public String typeId()
      Specified by:
      typeId in interface kalix.javasdk.workflow.WorkflowProvider<S,W extends kalix.javasdk.workflow.Workflow<S>>
    • options

      public kalix.javasdk.workflow.WorkflowOptions options()
      Specified by:
      options in interface kalix.javasdk.workflow.WorkflowProvider<S,W extends kalix.javasdk.workflow.Workflow<S>>
    • serviceDescriptor

      public com.google.protobuf.Descriptors.ServiceDescriptor serviceDescriptor()
      Specified by:
      serviceDescriptor in interface kalix.javasdk.workflow.WorkflowProvider<S,W extends kalix.javasdk.workflow.Workflow<S>>
    • newRouter

      public kalix.javasdk.impl.workflow.WorkflowRouter<S,W> newRouter(kalix.javasdk.workflow.WorkflowContext context)
      Specified by:
      newRouter in interface kalix.javasdk.workflow.WorkflowProvider<S,W extends kalix.javasdk.workflow.Workflow<S>>
    • additionalDescriptors

      public com.google.protobuf.Descriptors.FileDescriptor[] additionalDescriptors()
      Specified by:
      additionalDescriptors in interface kalix.javasdk.workflow.WorkflowProvider<S,W extends kalix.javasdk.workflow.Workflow<S>>
    • alternativeCodec

      public Optional<kalix.javasdk.impl.MessageCodec> alternativeCodec()
      Specified by:
      alternativeCodec in interface kalix.javasdk.workflow.WorkflowProvider<S,W extends kalix.javasdk.workflow.Workflow<S>>