public class ChannelRegistration
extends java.lang.Object
MessageChannel
.Constructor and Description |
---|
ChannelRegistration() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<ChannelInterceptor> |
getInterceptors() |
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(@Nullable ThreadPoolTaskExecutor taskExecutor)
taskExecutor
- the executor to use (or null
for a default executor)public ChannelRegistration interceptors(ChannelInterceptor... interceptors)
@Deprecated public ChannelRegistration setInterceptors(@Nullable ChannelInterceptor... interceptors)
interceptors(ChannelInterceptor...)
protected boolean hasTaskExecutor()
protected boolean hasInterceptors()
protected java.util.List<ChannelInterceptor> getInterceptors()