diff --git a/spring-integration-reference/src/channel.xml b/spring-integration-reference/src/channel.xml
index a5d589fca0..5e91f88abd 100644
--- a/spring-integration-reference/src/channel.xml
+++ b/spring-integration-reference/src/channel.xml
@@ -49,13 +49,13 @@
SubscribableChannel
The SubscribableChannel base interface is implemented by channels that send
- Messages directly to their subscribed consumers. Therefore, they do not provide receive methods for polling, but
+ Messages directly to their subscribed handlers. Therefore, they do not provide receive methods for polling, but
instead define methods for handling those subscribers:
public interface SubscribableChannel extends MessageChannel {
- boolean subscribe(MessageConsumer consumer);
+ boolean subscribe(MessageHandler handler);
- boolean unsubscribe(MessageConsumer consumer);
+ boolean unsubscribe(MessageHandler handler);
}
@@ -72,16 +72,16 @@
PublishSubscribeChannel
The PublishSubscribeChannel implementation broadcasts any Message
- sent to it to all of its subscribed consumers. This is most often used for sending
+ sent to it to all of its subscribed handlers. This is most often used for sending
Event Messages whose primary role is notification as opposed to
Document Messages which are generally intended to be processed by
- a single consumer. Note that the PublishSubscribeChannel is
+ a single handler. Note that the PublishSubscribeChannel is
intended for sending only. Since it broadcasts to its subscribers directly when its
send(Message) method is invoked, consumers cannot poll for
Messages (it does not implement PollableChannel and
therefore has no receive() method). Instead, any subscriber
- must be a MessageConsumer itself, and the subscriber's
- send(Message) method will be invoked in turn.
+ must be a MessageHandler itself, and the subscriber's
+ handleMessage(Message) method will be invoked in turn.
@@ -144,14 +144,14 @@
PollableChannel interface, so it dispatches Messages directly to a subscriber.
As a point-to-point channel, however, it differs from the PublishSubscribeChannel in
that it will only send each Message to a single subscribed
- MessageConsumer. Its primary purpose is to enable a single thread to perform the
- operations on "both sides" of the channel. For example, if a consumer is subscribed to a
+ MessageHandler. Its primary purpose is to enable a single thread to perform the
+ operations on "both sides" of the channel. For example, if a handler is subscribed to a
DirectChannel, then sending a Message to that channel will trigger invocation of that
- consumer's onMessage(Message) method directly in the sender's
+ handler's handleMessage(Message) method directly in the sender's
thread. The key motivation for providing a channel implementation with this behavior is to support
transactions that must span across the channel while still benefiting from the abstraction and loose coupling
that the channel provides. If the send call is invoked within the scope of a transaction, then the outcome of
- the consumer's invocation (e.g. updating a database record) can play a role in determining the ultimate result
+ the handler's invocation (e.g. updating a database record) can play a role in determining the ultimate result
of that transaction (commit or rollback).
Since the DirectChannel is the simplest option and does not add any additional
@@ -160,7 +160,7 @@
then to consider which of those needs to provide buffering to throttle input, and to modify those to be
queue-based PollableChannels. Likewise, if a channel needs to broadcast
messages, it should not be a DirectChannel but rather a
- PublishSubscribeChannel. Below you will see how these can be configured.
+ PublishSubscribeChannel. Below you will see how each of these can be configured.