public class SourceExecutorRegistry extends Object
| Constructor and Description |
|---|
SourceExecutorRegistry(GraphQLConfig muleConf) |
| Modifier and Type | Method and Description |
|---|---|
graphql.GraphQL |
getGraphQL()
Returns a current GraphQL instance for the current set of available
sources.
|
org.dataloader.DataLoaderRegistry |
getNewDataLoaderRegistry(Map<String,Object> context)
Creates a
DataLoaderRegistry for a given query |
Set<RoutingKey<?,?,?>> |
getRoutingKeys() |
<I,A,O> SourceExecutor<I,A,O> |
getSourceExecutor(RoutingKey<I,A,O> routingKey)
Retrieves an executor identified by the given
RoutingKey |
boolean |
hasSourceExecutor(RoutingKey<?,?,?> key) |
<I,A,O> void |
registerSourceExecutor(RoutingKey<I,A,O> routingKey,
SourceExecutor<I,A,O> executor)
Register an executor with the given
RoutingKey |
void |
unregisterSourceExecutor(RoutingKey<?,?,?> routingKey)
Removes the executor identified by the
RoutingKey |
public SourceExecutorRegistry(GraphQLConfig muleConf)
public Set<RoutingKey<?,?,?>> getRoutingKeys()
public <I,A,O> void registerSourceExecutor(RoutingKey<I,A,O> routingKey, SourceExecutor<I,A,O> executor)
RoutingKeyroutingKey - identifies the source executorexecutor - executor for the sourcepublic void unregisterSourceExecutor(RoutingKey<?,?,?> routingKey)
RoutingKeyroutingKey - key of the executor to be removedpublic <I,A,O> SourceExecutor<I,A,O> getSourceExecutor(RoutingKey<I,A,O> routingKey)
RoutingKeyroutingKey - key of the executor to be retrievedpublic boolean hasSourceExecutor(RoutingKey<?,?,?> key)
public graphql.GraphQL getGraphQL()
This method should only be called once per query. Failing to do this might result in processing half of a request with one set of routes and the other half with a different set.
GraphQL instanceCopyright © 2026 MuleSoft, Inc.. All rights reserved.