@NotThreadSafe public class HttpFunctionProvider extends java.lang.Object implements StatefulFunctionProvider, ManagingResources
Constructor and Description |
---|
HttpFunctionProvider(java.util.Map<FunctionType,HttpFunctionSpec> supportedTypes) |
Modifier and Type | Method and Description |
---|---|
RequestReplyFunction |
functionOfType(FunctionType type)
Creates a
StatefulFunction instance for the given FunctionType , |
HttpFunctionSpec |
getFunctionSpec(FunctionType type) |
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(java.util.Map<FunctionType,HttpFunctionSpec> supportedTypes)
public RequestReplyFunction functionOfType(FunctionType type)
StatefulFunctionProvider
StatefulFunction
instance for the given FunctionType
,functionOfType
in interface StatefulFunctionProvider
type
- the type of function to create an instance for.public HttpFunctionSpec getFunctionSpec(FunctionType type)
public void shutdown()
ManagingResources
shutdown
in interface ManagingResources
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.