public abstract class AbstractSubscribableChannel extends AbstractMessageChannel implements SubscribableChannel
MessageChannel
that invokes the subscribed
handler(s)
by delegating to a MessageDispatcher
.AbstractMessageChannel.ChannelInterceptorList
logger
Constructor and Description |
---|
AbstractSubscribableChannel() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doSend(Message<?> message,
long timeout)
Subclasses must implement this method.
|
protected abstract MessageDispatcher |
getDispatcher() |
boolean |
subscribe(MessageHandler handler)
Register a
MessageHandler as a subscriber to this channel. |
boolean |
unsubscribe(MessageHandler handle)
Remove a
MessageHandler from the subscribers of this channel. |
addInterceptor, getComponentType, getFullChannelName, getInterceptors, send, send, setConversionService, setDatatypes, setInterceptors, setShouldTrack
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
send, send
getComponentName
public boolean subscribe(MessageHandler handler)
SubscribableChannel
MessageHandler
as a subscriber to this channel.subscribe
in interface SubscribableChannel
public boolean unsubscribe(MessageHandler handle)
SubscribableChannel
MessageHandler
from the subscribers of this channel.unsubscribe
in interface SubscribableChannel
protected boolean doSend(Message<?> message, long timeout)
AbstractMessageChannel
doSend
in class AbstractMessageChannel
protected abstract MessageDispatcher getDispatcher()