public interface BatchMessageSender
Producer.createBatchMessageSender(), to send
messages in batch manner, and commit or roll back at the appropriate time.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this sender.
|
void |
commit()
Commits all the uncommitted messages in this sender.
|
void |
rollback()
Discards all the uncommitted messages in this sender.
|
BatchMessageSender |
send(Message message)
Submits a message to this sender
|
BatchMessageSender send(Message message)
message - a message to be sentvoid commit()
OMSRuntimeException - if the sender fails to commit the messages due to some internal error.void rollback()
void close()
Copyright © 2017–2018 OpenMessaging. All rights reserved.