Package kalix.javasdk.view
Class ReflectiveViewProvider<S,V extends kalix.javasdk.view.View<S>>
Object
kalix.javasdk.view.ReflectiveViewProvider<S,V>
- All Implemented Interfaces:
kalix.javasdk.view.ViewProvider
public class ReflectiveViewProvider<S,V extends kalix.javasdk.view.View<S>>
extends Object
implements kalix.javasdk.view.ViewProvider
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.Descriptors.FileDescriptor[]
Optional
<kalix.javasdk.impl.MessageCodec> newRouter
(kalix.javasdk.view.ViewCreationContext context) static <S,
V extends kalix.javasdk.view.View<S>>
ReflectiveViewProvider<S, V> of
(Class<V> cls, kalix.javasdk.impl.JsonMessageCodec messageCodec, Function<kalix.javasdk.view.ViewCreationContext, V> factory) kalix.javasdk.view.ViewOptions
options()
com.google.protobuf.Descriptors.ServiceDescriptor
viewId()
-
Method Details
-
of
public static <S,V extends kalix.javasdk.view.View<S>> ReflectiveViewProvider<S,V> of(Class<V> cls, kalix.javasdk.impl.JsonMessageCodec messageCodec, Function<kalix.javasdk.view.ViewCreationContext, V> factory) -
serviceDescriptor
public com.google.protobuf.Descriptors.ServiceDescriptor serviceDescriptor()- Specified by:
serviceDescriptor
in interfacekalix.javasdk.view.ViewProvider
-
viewId
- Specified by:
viewId
in interfacekalix.javasdk.view.ViewProvider
-
options
public kalix.javasdk.view.ViewOptions options()- Specified by:
options
in interfacekalix.javasdk.view.ViewProvider
-
newRouter
public kalix.javasdk.impl.view.ViewRouter<S,V> newRouter(kalix.javasdk.view.ViewCreationContext context) - Specified by:
newRouter
in interfacekalix.javasdk.view.ViewProvider
-
additionalDescriptors
public com.google.protobuf.Descriptors.FileDescriptor[] additionalDescriptors()- Specified by:
additionalDescriptors
in interfacekalix.javasdk.view.ViewProvider
-
alternativeCodec
- Specified by:
alternativeCodec
in interfacekalix.javasdk.view.ViewProvider
-