SubscribableChannel that sends messages to each of its subscribers.
| Modifier and Type | Class and Description |
|---|---|
| private class | ExecutorSubscribableChannel.
Invoke a MessageHandler with ExecutorChannelInterceptors. |
| Modifier and Type | Field and Description |
|---|---|
| private final Executor | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | ExecutorSubscribableChannel()
Create a new |
| public | ExecutorSubscribableChannel(Executor
the executor used to send the message,
or executor)null to execute in the callers thread.Create a new |
| executor | back to summary |
|---|---|
| private final Executor executor
| |
| executorInterceptors | back to summary |
|---|---|
| private final List<ExecutorChannelInterceptor> executorInterceptors | |
| ExecutorSubscribableChannel | back to summary |
|---|---|
| public ExecutorSubscribableChannel() Create a new | |
| ExecutorSubscribableChannel | back to summary |
|---|---|
| public ExecutorSubscribableChannel(Executor executor) Create a new
| |
| addInterceptor | back to summary |
|---|---|
| public void addInterceptor(ChannelInterceptor interceptor) Overrides org. Implements org. Doc from org. Add a channel interceptor to the end of the list.
| |
| addInterceptor | back to summary |
|---|---|
| public void addInterceptor(int index, ChannelInterceptor interceptor) Overrides org. Implements org. Doc from org. Add a channel interceptor at the specified index.
| |
| getExecutor | back to summary |
|---|---|
public Executor getExecutor()
| |
| sendInternal | back to summary |
|---|---|
| public boolean sendInternal(Message<?> message, long timeout) Implements abstract org.
| |
| setInterceptors | back to summary |
|---|---|
| public void setInterceptors(List<ChannelInterceptor> interceptors) Overrides org. Implements org. Doc from org. Set the list of channel interceptors clearing any existing interceptors.
| |
| updateExecutorInterceptorsFor | back to summary |
|---|---|
| private void updateExecutorInterceptorsFor(ChannelInterceptor interceptor) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Message | |
| private int | |
| private final MessageHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Message | |
| public Message | getMessage()
Implements org. Return the Message that will be handled. |
| public MessageHandler | getMessageHandler()
Implements org. Return the MessageHandler that will be used to handle the message. |
| public void | |
| private void |
| inputMessage | back to summary |
|---|---|
| private final Message<?> inputMessage | |
| interceptorIndex | back to summary |
|---|---|
| private int interceptorIndex | |
| messageHandler | back to summary |
|---|---|
| private final MessageHandler messageHandler | |
| SendTask | back to summary |
|---|---|
| public SendTask(Message<?> message, MessageHandler messageHandler) | |
| applyBeforeHandle | back to summary |
|---|---|
private Message
| |
| getMessage | back to summary |
|---|---|
| public Message Implements org. Doc from org. Return the Message that will be handled.
| |
| getMessageHandler | back to summary |
|---|---|
| public MessageHandler getMessageHandler() Implements org. Doc from org. Return the MessageHandler that will be used to handle the message.
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| triggerAfterMessageHandled | back to summary |
|---|---|
| private void triggerAfterMessageHandled(Message<?> message, Exception ex) | |