M - as Messagepublic interface BulkDispatcher<M extends Message> extends GenericDispatcher<M>
Message.getRecipients() = 1. Call a direct APIMessage.getRecipients() > 1. If infrastructure supports a broadcast then use it else use dispatch(List)dispatch(List) in a Loop if not Bulk option available| Modifier and Type | Method and Description |
|---|---|
default void |
broadcast(M message) |
void |
dispatch(List<M> messages) |
accept, dispatch, getSettings, transformCopyright © 2018. All rights reserved.