public abstract class AbstractSubscribableChannel extends AbstractMessageChannel implements SubscribableChannel
SubscribableChannel
implementations.logger
INDEFINITE_TIMEOUT
Constructor and Description |
---|
AbstractSubscribableChannel() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
hasSubscription(MessageHandler handler)
Whether the given
MessageHandler is already subscribed. |
boolean |
subscribe(MessageHandler handler)
Register a message handler.
|
protected abstract boolean |
subscribeInternal(MessageHandler handler)
Subscribe the given
MessageHandler . |
boolean |
unsubscribe(MessageHandler handler)
Un-register a message handler.
|
protected abstract boolean |
unsubscribeInternal(MessageHandler handler)
Unsubscribe the given
MessageHandler . |
addInterceptor, getBeanName, getInterceptorChain, getInterceptors, send, send, sendInternal, setBeanName, setInterceptors, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
send, send
public final boolean subscribe(MessageHandler handler)
SubscribableChannel
subscribe
in interface SubscribableChannel
true
if the handler was subscribed or false
if it
was already subscribed.public final boolean unsubscribe(MessageHandler handler)
SubscribableChannel
unsubscribe
in interface SubscribableChannel
true
if the handler was un-registered, or false
if was not registered.public abstract boolean hasSubscription(MessageHandler handler)
MessageHandler
is already subscribed.protected abstract boolean subscribeInternal(MessageHandler handler)
MessageHandler
.protected abstract boolean unsubscribeInternal(MessageHandler handler)
MessageHandler
.