public class FunctionInvoker extends AbstractSpringFunctionAdapterInitializer<com.google.cloud.functions.HttpRequest> implements com.google.cloud.functions.HttpFunction, com.google.cloud.functions.RawBackgroundFunction
HttpFunction and RawBackgroundFunction for Google
Cloud Function (GCF). This is the Spring Cloud Function adapter for GCF HTTP and Raw
Background function.catalog, jsonMapper, TARGET_EXECUTION_CTX_NAME| Constructor and Description |
|---|
FunctionInvoker() |
FunctionInvoker(Class<?> configurationClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(String json,
com.google.cloud.functions.Context context)
The implementation of a GCF
RawBackgroundFunction that will be used as the
entry point from GCF. |
void |
service(com.google.cloud.functions.HttpRequest httpRequest,
com.google.cloud.functions.HttpResponse httpResponse)
The implementation of a GCF
HttpFunction that will be used as the entry
point from GCF. |
apply, clear, close, convertOutput, doResolveName, function, getContext, getFunction, getInputType, initialize, resultpublic FunctionInvoker()
public FunctionInvoker(Class<?> configurationClass)
public void service(com.google.cloud.functions.HttpRequest httpRequest,
com.google.cloud.functions.HttpResponse httpResponse)
throws Exception
HttpFunction that will be used as the entry
point from GCF.service in interface com.google.cloud.functions.HttpFunctionExceptionpublic void accept(String json, com.google.cloud.functions.Context context)
RawBackgroundFunction that will be used as the
entry point from GCF.accept in interface com.google.cloud.functions.RawBackgroundFunctionjson - the payload.context - event context.Copyright © 2022 Pivotal Software, Inc.. All rights reserved.