Package io.micronaut.function.client
Interface FunctionInvoker<I,O>
- Type Parameters:
I- input typeO- output type
- All Known Implementing Classes:
HttpFunctionExecutor
public interface FunctionInvoker<I,O>
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptioninvoke(FunctionDefinition definition, I input, io.micronaut.core.type.Argument<O> outputType) Invoke the given function definition for the given input and expected response type.
-
Method Details
-
invoke
Invoke the given function definition for the given input and expected response type.- Parameters:
definition- The definitioninput- The inputoutputType- The response type- Returns:
- The result
-