MessageChannel implementations.
| Modifier and Type | Class and Description |
|---|---|
| protected class | AbstractMessageChannel.ChannelInterceptorChain
Assists with the invocation of the configured channel interceptors. |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private final List | |
| protected Log |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addInterceptor(ChannelInterceptor interceptor)
Implements org. |
| public void | addInterceptor(int index, ChannelInterceptor interceptor)
Implements org. |
| public String | |
| public List | getInterceptors()
Implements org. |
| public Log | |
| public boolean | removeInterceptor(ChannelInterceptor interceptor)
Implements org. |
| public ChannelInterceptor | removeInterceptor(int index)
Implements org. |
| public final boolean | send(Message<?>
the message to send message)Overrides default org. Message to this channel.
|
| public final boolean | send(Message<?>
the message to send message, long the timeout in milliseconds or timeout)INDEFINITE_TIMEOUTImplements org. |
| protected abstract boolean | |
| public void | setBeanName(String
the name of the bean in the factory.
Note that this name is the actual bean name used in the factory, which may
differ from the originally specified name: in particular for inner bean
names, the actual bean name might have been made unique through appending
"#..." suffixes. Use the name)BeanFactoryUtils#originalBeanName(String)
method to extract the original bean name (without suffix), if desired.Implements org. |
| public void | setInterceptors(List<ChannelInterceptor> interceptors)
Implements org. |
| public void | |
| public String |
| beanName | back to summary |
|---|---|
| private String beanName | |
| interceptors | back to summary |
|---|---|
| private final List<ChannelInterceptor> interceptors | |
| logger | back to summary |
|---|---|
| protected Log logger | |
| AbstractMessageChannel | back to summary |
|---|---|
| public AbstractMessageChannel() | |
| addInterceptor | back to summary |
|---|---|
| public void addInterceptor(ChannelInterceptor interceptor) 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) Implements org. Doc from org. Add a channel interceptor at the specified index.
| |
| getBeanName | back to summary |
|---|---|
| public String getBeanName() Return the bean name for this message channel. | |
| getInterceptors | back to summary |
|---|---|
| public List Implements org. Doc from org. Return the list of configured interceptors.
| |
| getLogger | back to summary |
|---|---|
| public Log getLogger() Return the currently configured Logger.
| |
| removeInterceptor | back to summary |
|---|---|
| public boolean removeInterceptor(ChannelInterceptor interceptor) Implements org. Doc from org. Remove the given interceptor.
| |
| removeInterceptor | back to summary |
|---|---|
| public ChannelInterceptor removeInterceptor(int index) Implements org. Doc from org. Remove the interceptor at the given index.
| |
| send | back to summary |
|---|---|
| public final boolean send(Message<?> message) Overrides default org. Doc from org. Send a This method may block indefinitely, depending on the implementation.
To provide a maximum wait time, use | |
| send | back to summary |
|---|---|
| public final boolean send(Message<?> message, long timeout) Implements org. Doc from org. Send a message, blocking until either the message is accepted or the specified timeout period elapses.
| |
| sendInternal | back to summary |
|---|---|
| protected abstract boolean sendInternal(Message<?> message, long timeout) | |
| setBeanName | back to summary |
|---|---|
| public void setBeanName(String name) Implements org. A message channel uses the bean name primarily for logging purposes.
| |
| setInterceptors | back to summary |
|---|---|
| public void setInterceptors(List<ChannelInterceptor> interceptors) Implements org. Doc from org. Set the list of channel interceptors clearing any existing interceptors.
| |
| setLogger | back to summary |
|---|---|
| public void setLogger(Log logger) Set an alternative logger to use than the one based on the class name.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Message | |
| public void | |
| public boolean | |
| public Message | |
| public void | |
| public void |
| receiveInterceptorIndex | back to summary |
|---|---|
| private int receiveInterceptorIndex | |
| sendInterceptorIndex | back to summary |
|---|---|
| private int sendInterceptorIndex | |
| ChannelInterceptorChain | back to summary |
|---|---|
| protected ChannelInterceptorChain() | |
| applyPostReceive | back to summary |
|---|---|
public Message
| |
| applyPostSend | back to summary |
|---|---|
| public void applyPostSend(Message<?> message, MessageChannel channel, boolean sent) | |
| applyPreReceive | back to summary |
|---|---|
| public boolean applyPreReceive(MessageChannel channel) | |
| applyPreSend | back to summary |
|---|---|
public Message
| |
| triggerAfterReceiveCompletion | back to summary |
|---|---|
| public void triggerAfterReceiveCompletion(Message<?> message, MessageChannel channel, Exception ex) | |
| triggerAfterSendCompletion | back to summary |
|---|---|
| public void triggerAfterSendCompletion(Message<?> message, MessageChannel channel, boolean sent, Exception ex) | |