Class ChannelRegistration
- java.lang.Object
- org.springframework.messaging.simp.config.ChannelRegistration
public class ChannelRegistration extends Object
A registration class for customizing the configuration for aMessageChannel
.- Since:
- 4.0
- Author:
- Rossen Stoyanchev, Juergen Hoeller
Constructor Summary
Constructors Constructor Description ChannelRegistration()
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected List<ChannelInterceptor>
getInterceptors()
protected TaskExecutorRegistration
getOrCreateTaskExecRegistration()
Deprecated.as of 4.3.12 since it's not used anymoreprotected TaskExecutorRegistration
getTaskExecRegistration()
Deprecated.as of 4.3.12 since it's not used anymoreprotected boolean
hasInterceptors()
protected boolean
hasTaskExecutor()
ChannelRegistration
interceptors(ChannelInterceptor... interceptors)
Configure the given interceptors for this message channel, adding them to the channel's current list of interceptors.ChannelRegistration
setInterceptors(ChannelInterceptor... interceptors)
Deprecated.as of 4.3.12, in favor ofinterceptors(ChannelInterceptor...)
TaskExecutorRegistration
taskExecutor()
Configure the thread pool backing this message channel.TaskExecutorRegistration
taskExecutor(ThreadPoolTaskExecutor taskExecutor)
Configure the thread pool backing this message channel using a custom ThreadPoolTaskExecutor.
Constructor Detail
ChannelRegistration
public ChannelRegistration()
Method Detail
taskExecutor
public TaskExecutorRegistration taskExecutor()
Configure the thread pool backing this message channel.
taskExecutor
public TaskExecutorRegistration taskExecutor(ThreadPoolTaskExecutor taskExecutor)
Configure the thread pool backing this message channel using a custom ThreadPoolTaskExecutor.- Parameters:
taskExecutor
- the executor to use (ornull
for a default executor)
interceptors
public ChannelRegistration interceptors(ChannelInterceptor... interceptors)
Configure the given interceptors for this message channel, adding them to the channel's current list of interceptors.- Since:
- 4.3.12
setInterceptors
@Deprecated public ChannelRegistration setInterceptors(ChannelInterceptor... interceptors)
Deprecated.as of 4.3.12, in favor ofinterceptors(ChannelInterceptor...)
Configure interceptors for the message channel.
hasTaskExecutor
protected boolean hasTaskExecutor()
getTaskExecRegistration
@Deprecated protected TaskExecutorRegistration getTaskExecRegistration()
Deprecated.as of 4.3.12 since it's not used anymore
getOrCreateTaskExecRegistration
@Deprecated protected TaskExecutorRegistration getOrCreateTaskExecRegistration()
Deprecated.as of 4.3.12 since it's not used anymore
hasInterceptors
protected boolean hasInterceptors()
getInterceptors
protected List<ChannelInterceptor> getInterceptors()