public final class HttpEndpointBinderV1 extends java.lang.Object implements ComponentBinder
ComponentBinder
for binding a HttpFunctionProvider
. Corresponding
TypeName
is io.statefun.endpoints.v1/http
.
Below is an example YAML document of the ComponentJsonObject
recognized by this
binder, with the expected types of each field:
kind: io.statefun.endpoints.v1/http (typename) spec: (object) functions: com.foo.bar/* (typename) urlPathTemplate: https://bar.foo.com:8080/{function.name} (string) maxNumBatchRequests: 10000 (int, optional) timeouts: (object, optional) call: 1minute (duration, optional) connect: 20seconds (duration, optional) read: 30seconds (duration, optional) write: 3seconds (duration, optional)
Modifier and Type | Method and Description |
---|---|
void |
bind(ComponentJsonObject component,
StatefulFunctionModule.Binder binder)
Bind a
ComponentJsonObject to an underlying remote module through the provided module
binder. |
public static final TypeName KIND_TYPE
public void bind(ComponentJsonObject component, StatefulFunctionModule.Binder binder)
ComponentBinder
ComponentJsonObject
to an underlying remote module through the provided module
binder.bind
in interface ComponentBinder
component
- the component to parse and bind.binder
- the binder to use to bind application entities to the underlying
remote module.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.