public class ExecutorSubscribableChannel extends AbstractSubscribableChannel
SubscribableChannel
that sends messages to each of its subscribers.logger
INDEFINITE_TIMEOUT
Constructor and Description |
---|
ExecutorSubscribableChannel()
Create a new
ExecutorSubscribableChannel instance where messages will be sent
in the callers thread. |
ExecutorSubscribableChannel(Executor executor)
Create a new
ExecutorSubscribableChannel instance where messages will be sent
via the specified executor. |
Modifier and Type | Method and Description |
---|---|
Executor |
getExecutor() |
boolean |
sendInternal(Message<?> message,
long timeout) |
getSubscribers, hasSubscription, subscribe, unsubscribe
addInterceptor, getBeanName, getInterceptorChain, getInterceptors, send, send, setBeanName, setInterceptors, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
send, send
public ExecutorSubscribableChannel()
ExecutorSubscribableChannel
instance where messages will be sent
in the callers thread.public ExecutorSubscribableChannel(Executor executor)
ExecutorSubscribableChannel
instance where messages will be sent
via the specified executor.executor
- the executor used to send the message or null
to execute in
the callers thread.public Executor getExecutor()
public boolean sendInternal(Message<?> message, long timeout)
sendInternal
in class AbstractMessageChannel