public class RoutingManager extends Object
Sources register listeners callbacks on it and it verifies that:
| Modifier and Type | Field and Description |
|---|---|
protected Map<RoutingKey<?,?,?>,Function<? extends org.mule.runtime.extension.api.runtime.operation.Result<?,?>,? extends RoutingContext>> |
callbacks |
protected Map<RoutingKey<?,?,?>,Object> |
routeConfigurations |
| Constructor and Description |
|---|
RoutingManager() |
| Modifier and Type | Method and Description |
|---|---|
<C> C |
getExpansionParametersConfig(RoutingKey<?,?,C> routingKey) |
<T,A,C> void |
registerListener(RoutingKey<T,A,C> routingKey,
Function<org.mule.runtime.extension.api.runtime.operation.Result<T,A>,RoutingContext> callback,
C config) |
<T,A> RoutingContext |
route(RoutingKey<T,A,?> routingKey,
org.mule.runtime.extension.api.runtime.operation.Result<T,A> sourceInput) |
void |
unregisterListenerContext(RoutingKey<?,?,?> routingKey) |
protected final Map<RoutingKey<?,?,?>,Object> routeConfigurations
protected final Map<RoutingKey<?,?,?>,Function<? extends org.mule.runtime.extension.api.runtime.operation.Result<?,?>,? extends RoutingContext>> callbacks
public <T,A,C> void registerListener(RoutingKey<T,A,C> routingKey, Function<org.mule.runtime.extension.api.runtime.operation.Result<T,A>,RoutingContext> callback, C config)
T - the payload type that the listener accepts.A - the request input attributes type that the listener accepts.C - the configuration object for a given route.routingKey - The routing key for the listenercallback - The listenerconfig - The route configurationpublic void unregisterListenerContext(RoutingKey<?,?,?> routingKey)
public <C> C getExpansionParametersConfig(RoutingKey<?,?,C> routingKey)
public <T,A> RoutingContext route(RoutingKey<T,A,?> routingKey, org.mule.runtime.extension.api.runtime.operation.Result<T,A> sourceInput)
Copyright © 2024 MuleSoft, Inc.. All rights reserved.