Interface MessagingChannelProcessor
- All Known Implementing Classes:
MessagingLivenessCheck
,MessagingReadinessCheck
public interface MessagingChannelProcessor
Application scoped bean implementing MessagingChannelProcessor can peek on reactive events
in the messaging channel.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default priority for channel processor. -
Method Summary
Modifier and TypeMethodDescriptionMessaging channel name associated with this processor.default Message
<?> Map messages going through the onNext signal in the messaging channel.default void
Listener for the cancel coming from the downstream.default void
onComplete
(String channelName) Listener for the onComplete signal coming from the upstream.default void
Listener for the onError event coming from the upstream.default void
Listener for the initial event before actual subscribing.default void
Listener for the request coming from the downstream.default void
onSubscribe
(String channelName, Subscriber<Message<?>> subscriber, Subscription subscription) Listener for the onSubscribe signal coming from the upstream.
-
Field Details
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITYDefault priority for channel processor.- See Also:
-
-
Method Details
-
map
Map messages going through the onNext signal in the messaging channel.- Parameters:
channelName
- name of the messaging channelmessage
- message coming from the upstream- Returns:
- mapped message to be delivered to the downstream
-
onError
Listener for the onError event coming from the upstream.- Parameters:
channelName
- name of the messaging channelt
- error causing the onError signal
-
onRequest
Listener for the request coming from the downstream.- Parameters:
channelName
- name of the messaging channelreq
- number of items requested by the downstream
-
onCancel
Listener for the cancel coming from the downstream.- Parameters:
channelName
- name of the messaging channel
-
onComplete
Listener for the onComplete signal coming from the upstream.- Parameters:
channelName
- name of the messaging channel
-
onSubscribe
default void onSubscribe(String channelName, Subscriber<Message<?>> subscriber, Subscription subscription) Listener for the onSubscribe signal coming from the upstream.- Parameters:
channelName
- name of the messaging channelsubscriber
- subscriber causing this onSubscribe signalsubscription
- assigned subscription
-
onInit
Listener for the initial event before actual subscribing.- Parameters:
channelName
- name of the messaging channel
-
channelName
Messaging channel name associated with this processor. If the channel name is empty this processor is applied to the all channels.- Returns:
- Channel name or empty for all channels
-