public class DirectChannel extends AbstractSubscribableChannel
AbstractMessageChannel.ChannelInterceptorListIntegrationManagement.ManagementOverridesinterceptors, metersEXPRESSION_PARSER, loggerINDEFINITE_TIMEOUTMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME| 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, getSubscriberCount, subscribe, unsubscribeaddInterceptor, addInterceptor, destroy, getComponentType, getFullChannelName, getIChannelInterceptorList, getIntegrationPatternType, getInterceptors, getMetricsCaptor, getOverrides, isLoggingEnabled, registerMetricsCaptor, removeInterceptor, removeInterceptor, send, send, setDatatypes, setInterceptors, setLoggingEnabled, setMessageConverter, setShouldTrackafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsend, sendgetManagedName, getManagedType, getThisAs, setManagedName, setManagedTypegetBeanName, getComponentNamepublic DirectChannel()
RoundRobinLoadBalancingStrategypublic DirectChannel(@Nullable LoadBalancingStrategy loadBalancingStrategy)
LoadBalancingStrategy.
Can be null meaning that no balancing is applied;
every message is always going to be handled by the first subscriber.loadBalancingStrategy - The load balancing strategy implementation.setFailover(boolean)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()
IntegrationObjectSupportonInit in class AbstractMessageChannel