Class ExecutorSubscribableChannel
java.lang.Object
org.springframework.messaging.support.AbstractMessageChannel
org.springframework.messaging.support.AbstractSubscribableChannel
org.springframework.messaging.support.ExecutorSubscribableChannel
- All Implemented Interfaces:
- Aware,- BeanNameAware,- MessageChannel,- SubscribableChannel,- InterceptableChannel
A 
SubscribableChannel that sends messages to each of its subscribers.- Since:
- 4.0
- Author:
- Phillip Webb, Rossen Stoyanchev
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.messaging.support.AbstractMessageChannelAbstractMessageChannel.ChannelInterceptorChain
- 
Field SummaryFields inherited from class org.springframework.messaging.support.AbstractMessageChannelloggerFields inherited from interface org.springframework.messaging.MessageChannelINDEFINITE_TIMEOUT
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a newExecutorSubscribableChannelinstance where messages will be sent in the callers thread.ExecutorSubscribableChannel(Executor executor) Create a newExecutorSubscribableChannelinstance where messages will be sent via the specified executor.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddInterceptor(int index, ChannelInterceptor interceptor) Add a channel interceptor at the specified index.voidaddInterceptor(ChannelInterceptor interceptor) Add a channel interceptor to the end of the list.booleansendInternal(Message<?> message, long timeout) voidsetInterceptors(List<ChannelInterceptor> interceptors) Set the list of channel interceptors clearing any existing interceptors.Methods inherited from class org.springframework.messaging.support.AbstractSubscribableChannelgetSubscribers, hasSubscription, subscribe, unsubscribeMethods inherited from class org.springframework.messaging.support.AbstractMessageChannelgetBeanName, getInterceptors, getLogger, removeInterceptor, removeInterceptor, send, send, setBeanName, setLogger, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.messaging.MessageChannelsend, send
- 
Constructor Details- 
ExecutorSubscribableChannelpublic ExecutorSubscribableChannel()Create a newExecutorSubscribableChannelinstance where messages will be sent in the callers thread.
- 
ExecutorSubscribableChannelCreate a newExecutorSubscribableChannelinstance where messages will be sent via the specified executor.- Parameters:
- executor- the executor used to send the message, or- nullto execute in the callers thread.
 
 
- 
- 
Method Details- 
getExecutor
- 
setInterceptorsDescription copied from interface:InterceptableChannelSet the list of channel interceptors clearing any existing interceptors.- Specified by:
- setInterceptorsin interface- InterceptableChannel
- Overrides:
- setInterceptorsin class- AbstractMessageChannel
 
- 
addInterceptorDescription copied from interface:InterceptableChannelAdd a channel interceptor to the end of the list.- Specified by:
- addInterceptorin interface- InterceptableChannel
- Overrides:
- addInterceptorin class- AbstractMessageChannel
 
- 
addInterceptorDescription copied from interface:InterceptableChannelAdd a channel interceptor at the specified index.- Specified by:
- addInterceptorin interface- InterceptableChannel
- Overrides:
- addInterceptorin class- AbstractMessageChannel
 
- 
sendInternal- Specified by:
- sendInternalin class- AbstractMessageChannel
 
 
-