public class DirectChannel extends AbstractSubscribableChannel
AbstractMessageChannel.ChannelInterceptorList
IntegrationManagement.ManagementOverrides
interceptors, meters
EXPRESSION_PARSER, logger
INDEFINITE_TIMEOUT
METER_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, unsubscribe
addInterceptor, addInterceptor, destroy, getComponentType, getFullChannelName, getIChannelInterceptorList, getIntegrationPatternType, getInterceptors, getMetricsCaptor, getOverrides, isLoggingEnabled, registerMetricsCaptor, removeInterceptor, removeInterceptor, send, send, setDatatypes, setInterceptors, setLoggingEnabled, setMessageConverter, setShouldTrack
afterPropertiesSet, 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
send, send
getManagedName, getManagedType, getThisAs, setManagedName, setManagedType
getBeanName, getComponentName
public DirectChannel()
RoundRobinLoadBalancingStrategy
public 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 AbstractSubscribableChannel
protected void onInit()
IntegrationObjectSupport
onInit
in class AbstractMessageChannel