Uses of Class
org.springframework.integration.dsl.RouterSpec
Package
Description
Root package of the Spring Integration Java DSL.
-
Uses of RouterSpec in org.springframework.integration.dsl
Modifier and TypeMethodDescriptionRouterSpec<K,
R> RouterSpec.channelKeyFallback
(boolean channelKeyFallback) When true (default), if a resolved channel key does not exist in the channel map, the key itself is used as the channel name, which we will attempt to resolve to a channel.RouterSpec<K,
R> RouterSpec.channelMapping
(K key, String channelName) RouterSpec<K,
R> RouterSpec.channelMapping
(K key, MessageChannel channel) The router mapping configuration based on the provided generic key andMessageChannel
bean.RouterSpec<K,
R> RouterSpec.defaultOutputToParentFlow()
Make a default output mapping of the router to the parent flow.RouterSpec<K,
R> RouterSpec.dynamicChannelLimit
(int dynamicChannelLimit) Set a limit for how many dynamic channels are retained (for reporting purposes).RouterSpec<K,
R> Cannot be invoked ifsubFlowMapping(Object, IntegrationFlow)
is used.RouterSpec<K,
R> RouterSpec.resolutionRequired
(boolean resolutionRequired) RouterSpec<K,
R> RouterSpec.sendTimeout
(long sendTimeout) RouterSpec<K,
R> RouterSpec.subFlowMapping
(K key, IntegrationFlow subFlow) Add a subflow as an alternative to achannelMapping(Object, String)
.RouterSpec<K,
R> Cannot be invoked ifsubFlowMapping(Object, IntegrationFlow)
is used.Modifier and TypeMethodDescription<P,
T> B BaseIntegrationFlowDefinition.route
(Class<P> expectedType, Function<P, T> router, Consumer<RouterSpec<T, MethodInvokingRouter>> routerConfigurer) Populate theMethodInvokingRouter
for providedFunction
and payload type and options fromRouterSpec
.BaseIntegrationFlowDefinition.route
(Object service, String methodName, Consumer<RouterSpec<Object, MethodInvokingRouter>> routerConfigurer) Populate theMethodInvokingRouter
for the method of the provided service and its method with provided options fromRouterSpec
.BaseIntegrationFlowDefinition.route
(String beanName, String method, Consumer<RouterSpec<Object, MethodInvokingRouter>> routerConfigurer) Populate theMethodInvokingRouter
for provided bean and its method with provided options fromRouterSpec
.<T> B
BaseIntegrationFlowDefinition.route
(String expression, Consumer<RouterSpec<T, ExpressionEvaluatingRouter>> routerConfigurer) Populate theExpressionEvaluatingRouter
for provided SpEL expression with provided options fromRouterSpec
.BaseIntegrationFlowDefinition.route
(MessageProcessorSpec<?> messageProcessorSpec, Consumer<RouterSpec<Object, MethodInvokingRouter>> routerConfigurer) Populate theMethodInvokingRouter
for theMessageProcessor
from the providedMessageProcessorSpec
with default options.<S,
T> B IntegrationFlowDefinition.route
(Function<S, T> router, Consumer<RouterSpec<T, MethodInvokingRouter>> routerConfigurer) BaseIntegrationFlowDefinition.routeByException
(Consumer<RouterSpec<Class<? extends Throwable>, ErrorMessageExceptionTypeRouter>> routerConfigurer) Populate theErrorMessageExceptionTypeRouter
with options from theRouterSpec
.