org.springframework.integration.channel
Class DirectChannel
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.channel.AbstractMessageChannel
org.springframework.integration.channel.AbstractSubscribableChannel
org.springframework.integration.channel.DirectChannel
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, MessageChannel, SubscribableChannel, NamedComponent
public class DirectChannel
- extends AbstractSubscribableChannel
A channel that invokes a single subscriber for each sent Message.
The invocation will occur in the sender's thread.
- Author:
- Dave Syer, Mark Fisher, Iwein Fuld, Oleg Zhurakousky
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getTaskScheduler, onInit, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setTaskScheduler, toString, writeMessageHistory |
DirectChannel
public DirectChannel()
- Create a channel with default
RoundRobinLoadBalancingStrategy
DirectChannel
public DirectChannel(LoadBalancingStrategy loadBalancingStrategy)
- Create a DirectChannel with a
LoadBalancingStrategy
. The
strategy must not be null.
setFailover
public void setFailover(boolean failover)
- Specify whether the channel's dispatcher should have failover enabled.
By default, it will. Set this value to 'false' to disable it.
getDispatcher
protected UnicastingDispatcher getDispatcher()
- Specified by:
getDispatcher
in class AbstractSubscribableChannel
Copyright © 2010. All Rights Reserved.