@ProviderType
public interface AcknowledgementSupport
Modifier and Type | Method and Description |
---|---|
void |
ack(InboundMessage message)
Acknowledges the inbound message.
|
void |
settle(InboundMessage message,
MessageAcknowledgementConfiguration.Outcome settlementOutcome)
Settles a message in a requested way.
|
void ack(InboundMessage message) throws PubSubPlusClientException
Synonym to the settle(Outcome.ACCEPTED)
message
- the message to acknowledgePubSubPlusClientException
- specifies a reason why acknowledgement operation for the given
message failedvoid settle(InboundMessage message, MessageAcknowledgementConfiguration.Outcome settlementOutcome) throws PubSubPlusClientException
message
- the message to be settledsettlementOutcome
- type of the settlement outcome, not expected to be null
. When
auto-acknowledgement is configured for the given instance of the
receiver, usage of negative outcome operation is not supported
and this method will throw an exception.PubSubPlusClientException
- specifies a reason why settlement operation for the given
message failedCopyright 2019-2024 Solace Corporation. All rights reserved.