public class DirectChannel extends AbstractSubscribableChannel
AbstractMessageChannel.ChannelInterceptorList
logger
INDEFINITE_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, unsubscribe
addInterceptor, addInterceptor, getChannelInterceptors, getComponentType, getFullChannelName, getInterceptors, send, send, setConversionService, setDatatypes, setInterceptors, setMessageConverter, setShouldTrack
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setMessageBuilderFactory, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
send, send
getComponentName
public DirectChannel()
RoundRobinLoadBalancingStrategy
public 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 AbstractSubscribableChannel
protected void onInit() throws Exception
IntegrationObjectSupport
onInit
in class AbstractMessageChannel
Exception
- Any exception.