public interface MessageBroadcaster<T>
Any implementation of this interface provide way to get list of subscribers and send mechanism by itself.
| Modifier and Type | Method and Description |
|---|---|
void |
broadcast(java.util.Collection<org.ametiste.scm.messaging.data.transport.TransportMessage<T>> messages)
Broadcast collection of messages to group of subscribers.
|
void broadcast(java.util.Collection<org.ametiste.scm.messaging.data.transport.TransportMessage<T>> messages) throws BroadcastOperationException, NoSubscriberException
Operation is successful if messages successful delivered to at least one subscriber from group.
messages - collection of transport messages with T type payload.BroadcastOperationException - when broadcast operation failed. For example failed send messages to all
subscribers group.NoSubscriberException - when broadcaster receive empty group of subscribers and no one to send.