public static interface StatefulFunctionModule.Binder
StatefulFunctionModule.Binder binds ingresses, egresses, routers, and functions to a Stateful Functions
application.| Modifier and Type | Method and Description |
|---|---|
<T> void |
bindEgress(EgressSpec<T> spec)
Binds an
EgressSpec to the Stateful Functions application. |
void |
bindFunctionProvider(FunctionTypeNamespaceMatcher namespaceMatcher,
StatefulFunctionProvider provider)
Binds a
StatefulFunctionProvider to the Stateful Functions application for all
functions under the specified namespace. |
void |
bindFunctionProvider(FunctionType functionType,
StatefulFunctionProvider provider)
Binds a
StatefulFunctionProvider to the Stateful Functions application for a specific
FunctionType. |
<T> void |
bindIngress(IngressSpec<T> spec)
Binds an
IngressSpec to the Stateful Functions application. |
<T> void |
bindIngressRouter(IngressIdentifier<T> id,
Router<T> router)
Binds a
Router for a given ingress to the Stateful Functions application. |
<T> void bindIngress(IngressSpec<T> spec)
IngressSpec to the Stateful Functions application.T - the output type of the ingress.spec - the IngressSpec to bind.<T> void bindEgress(EgressSpec<T> spec)
EgressSpec to the Stateful Functions application.T - the type of inputs that the egress consumes.spec - the EgressSpec to bind.void bindFunctionProvider(FunctionType functionType, StatefulFunctionProvider provider)
StatefulFunctionProvider to the Stateful Functions application for a specific
FunctionType.functionType - the type of functions that the StatefulFunctionProvider provides.provider - the provider to bind.void bindFunctionProvider(FunctionTypeNamespaceMatcher namespaceMatcher, StatefulFunctionProvider provider)
StatefulFunctionProvider to the Stateful Functions application for all
functions under the specified namespace. If a provider was bound for a specific function type
using bindFunctionProvider(FunctionType, StatefulFunctionProvider), that provider
would be used instead.namespaceMatcher - matcher for the target namespace of functions that the StatefulFunctionProvider provides.provider - the provider to bind.<T> void bindIngressRouter(IngressIdentifier<T> id, Router<T> router)
Router for a given ingress to the Stateful Functions application.T - the type of messages that is being routed.id - the id of the ingress to bind the router to.router - the router to bind.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.