@Singleton public class DefaultFunctionDiscoveryClient extends java.lang.Object implements FunctionDiscoveryClient
FunctionDiscoveryClient interface.| Constructor and Description |
|---|
DefaultFunctionDiscoveryClient(DiscoveryClient discoveryClient,
FunctionDefinitionProvider[] providers,
FunctionDefinition... definitions)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<FunctionDefinition> |
getFunction(java.lang.String functionName)
Finds a function for the given function name.
|
public DefaultFunctionDiscoveryClient(DiscoveryClient discoveryClient, FunctionDefinitionProvider[] providers, FunctionDefinition... definitions)
discoveryClient - discoveryClientproviders - providersdefinitions - definitionspublic org.reactivestreams.Publisher<FunctionDefinition> getFunction(java.lang.String functionName)
FunctionDiscoveryClientgetFunction in interface FunctionDiscoveryClientfunctionName - The function namePublisher that emits the URI of the function or a FunctionNotFoundException if no function is found