Class ReflectiveValueEntityProvider<S,E extends kalix.javasdk.valueentity.ValueEntity<S>>

Object
kalix.javasdk.valueentity.ReflectiveValueEntityProvider<S,E>
All Implemented Interfaces:
kalix.javasdk.valueentity.ValueEntityProvider<S,E>

public class ReflectiveValueEntityProvider<S,E extends kalix.javasdk.valueentity.ValueEntity<S>> extends Object implements kalix.javasdk.valueentity.ValueEntityProvider<S,E>
  • Constructor Details

    • ReflectiveValueEntityProvider

      public ReflectiveValueEntityProvider(Class<E> entityClass, kalix.javasdk.impl.JsonMessageCodec messageCodec, Function<kalix.javasdk.valueentity.ValueEntityContext,E> factory, kalix.javasdk.valueentity.ValueEntityOptions options)
  • Method Details

    • of

      public static <S, E extends kalix.javasdk.valueentity.ValueEntity<S>> ReflectiveValueEntityProvider<S,E> of(Class<E> cls, kalix.javasdk.impl.JsonMessageCodec messageCodec, Function<kalix.javasdk.valueentity.ValueEntityContext,E> factory)
    • options

      public kalix.javasdk.valueentity.ValueEntityOptions options()
      Specified by:
      options in interface kalix.javasdk.valueentity.ValueEntityProvider<S,E extends kalix.javasdk.valueentity.ValueEntity<S>>
    • serviceDescriptor

      public com.google.protobuf.Descriptors.ServiceDescriptor serviceDescriptor()
      Specified by:
      serviceDescriptor in interface kalix.javasdk.valueentity.ValueEntityProvider<S,E extends kalix.javasdk.valueentity.ValueEntity<S>>
    • typeId

      public String typeId()
      Specified by:
      typeId in interface kalix.javasdk.valueentity.ValueEntityProvider<S,E extends kalix.javasdk.valueentity.ValueEntity<S>>
    • newRouter

      public kalix.javasdk.impl.valueentity.ValueEntityRouter<S,E> newRouter(kalix.javasdk.valueentity.ValueEntityContext context)
      Specified by:
      newRouter in interface kalix.javasdk.valueentity.ValueEntityProvider<S,E extends kalix.javasdk.valueentity.ValueEntity<S>>
    • additionalDescriptors

      public com.google.protobuf.Descriptors.FileDescriptor[] additionalDescriptors()
      Specified by:
      additionalDescriptors in interface kalix.javasdk.valueentity.ValueEntityProvider<S,E extends kalix.javasdk.valueentity.ValueEntity<S>>
    • alternativeCodec

      public Optional<kalix.javasdk.impl.MessageCodec> alternativeCodec()
      Specified by:
      alternativeCodec in interface kalix.javasdk.valueentity.ValueEntityProvider<S,E extends kalix.javasdk.valueentity.ValueEntity<S>>