Class LoadBalancingChannelSpec<S extends MessageChannelSpec<S,C>,C extends AbstractMessageChannel>  
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,C>
 
org.springframework.integration.dsl.MessageChannelSpec<S,C>
 
org.springframework.integration.dsl.LoadBalancingChannelSpec<S,C> 
- Type Parameters:
- S- the target- LoadBalancingChannelSpecimplementation type.
- C- the target- AbstractMessageChannelimplementation type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<C>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
- Direct Known Subclasses:
- DirectChannelSpec,- ExecutorChannelSpec,- PartitionedChannelSpec
public abstract class LoadBalancingChannelSpec<S extends MessageChannelSpec<S,C>,C extends AbstractMessageChannel>  
extends MessageChannelSpec<S,C> 
- Since:
- 5.0
- Author:
- Artem Bilan
- 
Field SummaryFieldsFields inherited from class org.springframework.integration.dsl.MessageChannelSpecchannelFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfailover(boolean failoverToSet) failoverStrategy(Predicate<Exception> failoverStrategy) Configure a strategy whether the channel's dispatcher should have failover enabled for the exception thrown.loadBalancer(LoadBalancingStrategy loadBalancingStrategyToSet) maxSubscribers(Integer maxSubscribersToSet) Methods inherited from class org.springframework.integration.dsl.MessageChannelSpecdatatype, doGet, getComponentsToRegister, interceptor, messageConverter, wireTap, wireTap, wireTapMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Field Details- 
loadBalancingStrategy
- 
failoverStrategy
- 
maxSubscribers
 
- 
- 
Constructor Details- 
LoadBalancingChannelSpecprotected LoadBalancingChannelSpec()
 
- 
- 
Method Details- 
loadBalancer
- 
failover
- 
failoverStrategyConfigure a strategy whether the channel's dispatcher should have failover enabled for the exception thrown. Overridesfailover(boolean)option. In other words: or this, or that option has to be set.- Parameters:
- failoverStrategy- The failover boolean.
- Since:
- 6.3
 
- 
maxSubscribers
 
-