public class DirectChannel extends AbstractSubscribableChannel
AbstractMessageChannel.ChannelInterceptorListloggerINDEFINITE_TIMEOUT| Constructor and Description |
|---|
DirectChannel()
Create a channel with default
RoundRobinLoadBalancingStrategy |
DirectChannel(LoadBalancingStrategy loadBalancingStrategy)
Create a DirectChannel with a
LoadBalancingStrategy. |
| Modifier and Type | Method and Description |
|---|---|
protected UnicastingDispatcher |
getDispatcher() |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setFailover(boolean failover)
Specify whether the channel's dispatcher should have failover enabled.
|
void |
setMaxSubscribers(int maxSubscribers)
Specify the maximum number of subscribers supported by the
channel's dispatcher.
|
doSend, subscribe, unsubscribeaddInterceptor, addInterceptor, getChannelInterceptors, getComponentType, getFullChannelName, getInterceptors, send, send, setConversionService, setDatatypes, setInterceptors, setMessageConverter, setShouldTrackafterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setMessageBuilderFactory, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsend, sendgetComponentNamepublic DirectChannel()
RoundRobinLoadBalancingStrategypublic DirectChannel(LoadBalancingStrategy loadBalancingStrategy)
LoadBalancingStrategy. The
strategy must not be null.loadBalancingStrategy - The load balancing strategy implementation.public void setFailover(boolean failover)
failover - The failover boolean.public void setMaxSubscribers(int maxSubscribers)
maxSubscribers - The maximum number of subscribers allowed.protected UnicastingDispatcher getDispatcher()
getDispatcher in class AbstractSubscribableChannelprotected void onInit()
throws Exception
IntegrationObjectSupportonInit in class AbstractMessageChannelException - Any exception.