public class DirectChannel extends AbstractSubscribableChannel
AbstractMessageChannel.ChannelInterceptorList
logger
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, getComponentType, getFullChannelName, getInterceptors, send, send, setConversionService, setDatatypes, setInterceptors, setShouldTrack
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, 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.public void setFailover(boolean failover)
public void setMaxSubscribers(int maxSubscribers)
maxSubscribers
- protected UnicastingDispatcher getDispatcher()
getDispatcher
in class AbstractSubscribableChannel
protected void onInit() throws java.lang.Exception
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
java.lang.Exception