@NotThreadSafe public final class HttpFunctionProvider extends java.lang.Object implements StatefulFunctionProvider, ManagingResources
Constructor and Description |
---|
HttpFunctionProvider(HttpFunctionEndpointSpec endpointSpec,
RequestReplyClientFactory requestReplyClientFactory) |
Modifier and Type | Method and Description |
---|---|
StatefulFunction |
functionOfType(FunctionType functionType)
Creates a
StatefulFunction instance for the given FunctionType , |
void |
shutdown()
This method would be called by the runtime on shutdown, and indicates that this is the time to
free up any resources managed by this class.
|
public HttpFunctionProvider(HttpFunctionEndpointSpec endpointSpec, RequestReplyClientFactory requestReplyClientFactory)
public StatefulFunction functionOfType(FunctionType functionType)
StatefulFunctionProvider
StatefulFunction
instance for the given FunctionType
,functionOfType
in interface StatefulFunctionProvider
functionType
- the type of function to create an instance for.public void shutdown()
ManagingResources
shutdown
in interface ManagingResources
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.