public class ApiAggregator extends Object implements ApiProvider
ApiAggregator class is an aggregating
implementation of the ApiProvider interface.| Modifier and Type | Field and Description |
|---|---|
static String |
AGGREGATOR_DEFAULT_NAME
Default name of this provider.
|
| Constructor and Description |
|---|
ApiAggregator(String name,
Map<String,ApiProvider> ifaceMap)
Calls
ApiAggregator(String, Map, boolean), automatically
deploying introspection services. |
ApiAggregator(String name,
Map<String,ApiProvider> ifaceMap,
boolean deployIntrospectionServices)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(String serviceId,
String operationId,
DataValue input,
ExecutionContext ctx,
AsyncHandle<MethodResult> asyncHandle)
Invokes the specified operation using the provided input and
execution context.
|
public static final String AGGREGATOR_DEFAULT_NAME
public ApiAggregator(String name, Map<String,ApiProvider> ifaceMap)
ApiAggregator(String, Map, boolean), automatically
deploying introspection services.public ApiAggregator(String name, Map<String,ApiProvider> ifaceMap, boolean deployIntrospectionServices)
invoke(String, String, DataValue, ExecutionContext, AsyncHandle).name - the name of the API aggregator
if missing, AGGREGATOR_DEFAULT_NAME will be usedifaceMap - map of service id to provider which handles that servicedeployIntrospectionServices - whether to automatically deploy
introspection servicespublic void invoke(String serviceId, String operationId, DataValue input, ExecutionContext ctx, AsyncHandle<MethodResult> asyncHandle)
ApiProviderTarget method is identified by serviceId and
operationId.
invoke in interface ApiProviderserviceId - identifier of the target serviceoperationId - identifier of the target operationinput - operation input parametersctx - execution context for the invocationasyncHandle - handle used to asynchronously "return" the result
or error of the invocationCopyright © 2022. All rights reserved.