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