public class ChannelRegistration extends Object
MessageChannel
.Constructor and Description |
---|
ChannelRegistration() |
Modifier and Type | Method and Description |
---|---|
protected List<ChannelInterceptor> |
getInterceptors() |
protected TaskExecutorRegistration |
getOrCreateTaskExecRegistration()
Deprecated.
as of 4.3.12 since it's not used anymore
|
protected TaskExecutorRegistration |
getTaskExecRegistration()
Deprecated.
as of 4.3.12 since it's not used anymore
|
protected 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 of
interceptors(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.
|
public TaskExecutorRegistration taskExecutor()
public TaskExecutorRegistration taskExecutor(ThreadPoolTaskExecutor taskExecutor)
taskExecutor
- the executor to use (or null
for a default executor)public ChannelRegistration interceptors(ChannelInterceptor... interceptors)
@Deprecated public ChannelRegistration setInterceptors(ChannelInterceptor... interceptors)
interceptors(ChannelInterceptor...)
protected boolean hasTaskExecutor()
@Deprecated protected TaskExecutorRegistration getTaskExecRegistration()
@Deprecated protected TaskExecutorRegistration getOrCreateTaskExecRegistration()
protected boolean hasInterceptors()
protected List<ChannelInterceptor> getInterceptors()