I - input typeO - result typepublic class FunctionInvoker<I,O> extends Object
| Constructor and Description |
|---|
FunctionInvoker() |
FunctionInvoker(Class<?> configurationClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
handleOutput(I input,
com.microsoft.azure.functions.OutputBinding<O> binding,
com.microsoft.azure.functions.ExecutionContext context) |
O |
handleRequest(com.microsoft.azure.functions.ExecutionContext context) |
O |
handleRequest(I input,
com.microsoft.azure.functions.ExecutionContext executionContext) |
protected O |
postProcessFluxFunctionResult(I rawInputs,
Object functionInputs,
reactor.core.publisher.Flux<?> functionResult,
SimpleFunctionRegistry.FunctionInvocationWrapper function,
com.microsoft.azure.functions.ExecutionContext executionContext)
Post-processes the
Flux result from a reactive function invocation before returning it to the Azure
runtime. |
protected O |
postProcessImperativeFunctionResult(I rawInputs,
Object functionInputs,
Object functionResult,
SimpleFunctionRegistry.FunctionInvocationWrapper function,
com.microsoft.azure.functions.ExecutionContext executionContext)
Post-processes the result from a non-reactive function invocation before returning it to the Azure
runtime.
|
protected O |
postProcessMonoFunctionResult(I rawInputs,
Object functionInputs,
reactor.core.publisher.Mono<?> functionResult,
SimpleFunctionRegistry.FunctionInvocationWrapper function,
com.microsoft.azure.functions.ExecutionContext executionContext)
Post-processes the
Mono result from a reactive function invocation before returning it to the Azure
runtime. |
protected O |
postProcessReactiveFunctionResult(I rawInputs,
Object functionInputs,
org.reactivestreams.Publisher<?> functionResult,
SimpleFunctionRegistry.FunctionInvocationWrapper function,
com.microsoft.azure.functions.ExecutionContext executionContext)
Post-processes the result from a reactive function invocation before returning it to the Azure
runtime.
|
public FunctionInvoker(Class<?> configurationClass)
public FunctionInvoker()
public O handleRequest(com.microsoft.azure.functions.ExecutionContext context)
public void close()
public void handleOutput(I input, com.microsoft.azure.functions.OutputBinding<O> binding, com.microsoft.azure.functions.ExecutionContext context)
public O handleRequest(I input, com.microsoft.azure.functions.ExecutionContext executionContext)
protected O postProcessImperativeFunctionResult(I rawInputs, Object functionInputs, Object functionResult, SimpleFunctionRegistry.FunctionInvocationWrapper function, com.microsoft.azure.functions.ExecutionContext executionContext)
possibly convert the result.
Provides a hook for custom function invokers to extend/modify the function results handling.
rawInputs - the inputs passed in from the Azure runtimefunctionInputs - the actual inputs used for the function invocation; may be
different from the rawInputsfunctionResult - the result from the function invocationfunction - the invoked functionexecutionContext - the Azure execution contextprotected O postProcessReactiveFunctionResult(I rawInputs, Object functionInputs, org.reactivestreams.Publisher<?> functionResult, SimpleFunctionRegistry.FunctionInvocationWrapper function, com.microsoft.azure.functions.ExecutionContext executionContext)
postProcessMonoFunctionResult(I, java.lang.Object, reactor.core.publisher.Mono<?>, org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry.FunctionInvocationWrapper, com.microsoft.azure.functions.ExecutionContext) or
postProcessFluxFunctionResult(I, java.lang.Object, reactor.core.publisher.Flux<?>, org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry.FunctionInvocationWrapper, com.microsoft.azure.functions.ExecutionContext) based on the result type.
Provides a hook for custom function invokers to extend/modify the function results handling.
rawInputs - the inputs passed in from the Azure runtimefunctionInputs - the actual inputs used for the function invocation; may be
different from the rawInputsfunctionResult - the result from the function invocationfunction - the invoked functionexecutionContext - the Azure execution contextprotected O postProcessMonoFunctionResult(I rawInputs, Object functionInputs, reactor.core.publisher.Mono<?> functionResult, SimpleFunctionRegistry.FunctionInvocationWrapper function, com.microsoft.azure.functions.ExecutionContext executionContext)
Mono result from a reactive function invocation before returning it to the Azure
runtime. The default behavior is to Mono.blockOptional() and possibly convert the result.
Provides a hook for custom function invokers to extend/modify the function results handling.
rawInputs - the inputs passed in from the Azure runtimefunctionInputs - the actual inputs used for the function invocation; may be
different from the rawInputsfunctionResult - the Mono result from the function invocationfunction - the invoked functionexecutionContext - the Azure execution contextprotected O postProcessFluxFunctionResult(I rawInputs, Object functionInputs, reactor.core.publisher.Flux<?> functionResult, SimpleFunctionRegistry.FunctionInvocationWrapper function, com.microsoft.azure.functions.ExecutionContext executionContext)
Flux result from a reactive function invocation before returning it to the Azure
runtime. The default behavior is to block and possibly convert the results.
Provides a hook for custom function invokers to extend/modify the function results handling.
rawInputs - the inputs passed in from the Azure runtimefunctionInputs - the actual inputs used for the function invocation; may be
different from the rawInputsfunctionResult - the Mono result from the function invocationfunction - the invoked functionexecutionContext - the Azure execution contextCopyright © 2022 Pivotal Software, Inc.. All rights reserved.