public static interface BatchMessageListener.Context
Modifier and Type | Method and Description |
---|---|
void |
ack()
Acknowledges all messages in this batch, which is related to this
MessageContext . |
void |
success(MessageReceipt... messages)
Acknowledges the specified and consumed message, which is related to this
MessageContext . |
void success(MessageReceipt... messages)
MessageContext
.
Messages that have been received but not acknowledged may be redelivered.
OMSRuntimeException
- if the consumer fails to acknowledge the messages due to some internal error.void ack()
MessageContext
.
OMSRuntimeException
- if the consumer fails to acknowledge the messages due to some internal error.Copyright © 2017–2020 OpenMessaging. All rights reserved.