|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.integration.channel.AbstractMessageChannel
org.springframework.integration.dispatcher.PublishSubscribeChannel
public class PublishSubscribeChannel
Field Summary | |
---|---|
private BroadcastingDispatcher |
dispatcher
|
Constructor Summary | |
---|---|
PublishSubscribeChannel()
|
|
PublishSubscribeChannel(org.springframework.core.task.TaskExecutor taskExecutor)
Create a PublishSubscribeChannel that will use a TaskExecutor
to publish its Messages. |
Method Summary | |
---|---|
java.util.List<Message<?>> |
clear()
Remove all Messages from this channel. |
protected Message<?> |
doReceive(long timeout)
Subclasses must implement this method. |
protected boolean |
doSend(Message<?> message,
long timeout)
Subclasses must implement this method. |
java.util.List<Message<?>> |
purge(MessageSelector selector)
Remove any Messages that are not accepted by the provided selector. |
boolean |
subscribe(MessageTarget target)
Register a MessageTarget as a subscriber to this source. |
boolean |
unsubscribe(MessageTarget target)
Remove a MessageTarget from the subscribers of this source. |
Methods inherited from class org.springframework.integration.channel.AbstractMessageChannel |
---|
addInterceptor, getName, receive, receive, send, send, setBeanName, setInterceptors, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final BroadcastingDispatcher dispatcher
Constructor Detail |
---|
public PublishSubscribeChannel()
public PublishSubscribeChannel(org.springframework.core.task.TaskExecutor taskExecutor)
TaskExecutor
to publish its Messages.
Method Detail |
---|
public boolean subscribe(MessageTarget target)
Subscribable
MessageTarget
as a subscriber to this source.
subscribe
in interface Subscribable
public boolean unsubscribe(MessageTarget target)
Subscribable
MessageTarget
from the subscribers of this source.
unsubscribe
in interface Subscribable
protected boolean doSend(Message<?> message, long timeout)
AbstractMessageChannel
doSend
in class AbstractMessageChannel
protected Message<?> doReceive(long timeout)
AbstractMessageChannel
doReceive
in class AbstractMessageChannel
public java.util.List<Message<?>> clear()
MessageChannel
Messages
from this channel.
clear
in interface MessageChannel
public java.util.List<Message<?>> purge(MessageSelector selector)
MessageChannel
Messages
that are not accepted by the provided selector.
purge
in interface MessageChannel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |