Package io.micronaut.function.client
Class DefaultFunctionDiscoveryClient
java.lang.Object
io.micronaut.function.client.DefaultFunctionDiscoveryClient
- All Implemented Interfaces:
FunctionDiscoveryClient
@Singleton
public class DefaultFunctionDiscoveryClient
extends Object
implements FunctionDiscoveryClient
Default implementation of the
FunctionDiscoveryClient
interface.- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionDefaultFunctionDiscoveryClient
(DiscoveryClient discoveryClient, FunctionDefinitionProvider[] providers, FunctionDefinition... definitions) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetFunction
(String functionName) Finds a function for the given function name.
-
Constructor Details
-
DefaultFunctionDiscoveryClient
public DefaultFunctionDiscoveryClient(DiscoveryClient discoveryClient, FunctionDefinitionProvider[] providers, FunctionDefinition... definitions) Constructor.- Parameters:
discoveryClient
- discoveryClientproviders
- providersdefinitions
- definitions
-
-
Method Details
-
getFunction
Description copied from interface:FunctionDiscoveryClient
Finds a function for the given function name.- Specified by:
getFunction
in interfaceFunctionDiscoveryClient
- Parameters:
functionName
- The function name- Returns:
- A
Publisher
that emits theURI
of the function or aFunctionNotFoundException
if no function is found
-