Package org.springframework.messaging
Interface SubscribableChannel
- All Superinterfaces:
MessageChannel
- All Known Implementing Classes:
AbstractSubscribableChannel
,ExecutorSubscribableChannel
A
MessageChannel
that maintains a registry of subscribers and invokes
them to handle messages sent through this channel.- Since:
- 4.0
- Author:
- Mark Fisher
-
Field Summary
Fields inherited from interface org.springframework.messaging.MessageChannel
INDEFINITE_TIMEOUT
-
Method Summary
Modifier and TypeMethodDescriptionboolean
subscribe
(MessageHandler handler) Register a message handler.boolean
unsubscribe
(MessageHandler handler) Un-register a message handler.Methods inherited from interface org.springframework.messaging.MessageChannel
send, send
-
Method Details
-
subscribe
Register a message handler.- Returns:
true
if the handler was subscribed orfalse
if it was already subscribed.
-
unsubscribe
Un-register a message handler.- Returns:
true
if the handler was un-registered, orfalse
if was not registered.
-