|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.client.MessageMulticaster
public class MessageMulticaster
Message Multicaster.
Used to send a message to a recipient list, or a subset of that recipient list. Caches aServiceInvoker
instance for each recipient.
Note: This doesn't "multicast" message delivery in the true IP sense of the
word "multicast". It sends the message to all recipients in its recipient list,
one at a time, in the order the recipients were added via the
addRecipient(org.jboss.soa.esb.Service)
method.
Constructor Summary | |
---|---|
MessageMulticaster()
Public default constructor. |
|
MessageMulticaster(java.lang.String splitId)
Public default constructor. |
Method Summary | |
---|---|
void |
addRecipient(Service service)
Add a message recipient Service. |
int |
getRecipientCount()
Get the number ot recipients associated with this multicaster instance. |
boolean |
isRecipient(Service service)
Is the specified service a recipient of this multicaster instance. |
void |
sendToAll(Message message)
Send the message to all the recipients associated with this multicaster. |
void |
sendToSubset(Message message,
java.util.List<Service> recipients)
Send the message to all the recipients associated with this multicaster and also listed in the supplied recipient list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageMulticaster()
public MessageMulticaster(java.lang.String splitId)
splitId
- Split ID for this multicaster.Method Detail |
---|
public void addRecipient(Service service) throws RegistryException, MessageDeliverException
service
- Recipient service for receipt of messages from this miltcaster instance.
RegistryException
- Failed to lookup Service endpoint.
MessageDeliverException
- Failed to deliver message to endpoint.public boolean isRecipient(Service service)
service
- The service to check for.
public int getRecipientCount()
public void sendToAll(Message message) throws RegistryException, MessageDeliverException
message
- The message.
RegistryException
- Failed to lookup Service endpoint.
MessageDeliverException
- Failed to deliver message to endpoint.public void sendToSubset(Message message, java.util.List<Service> recipients) throws RegistryException, MessageDeliverException
addRecipient(org.jboss.soa.esb.Service)
method, otherwise the message will be delivered to the Dead Letter Channel.
message
- The message.recipients
- The recipient subset to which the supplied message is to be sent.
RegistryException
- Failed to lookup Service endpoint.
MessageDeliverException
- Failed to deliver message to endpoint.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |