@ProviderType
public interface MessageAcknowledgementConfiguration
| Modifier and Type | Method and Description |
|---|---|
MessageAcknowledgementConfiguration |
withMessageAutoAcknowledgement()
Enables support for message Auto-Acknowledgement (auto-ack) for persistent message receiver.
|
MessageAcknowledgementConfiguration |
withMessageClientAcknowledgement()
Enables support for client message acknowledgement on persistent message receiver.
|
MessageAcknowledgementConfiguration withMessageAutoAcknowledgement()
Note:
- For messages received on callback based methods, auto-ack is performed when the message-processing callback method finishes without an error. This means that if the message-processing callback method decides to process messages using another thread, message acknowledgement may be performed before another thread finishes, and any exceptions thrown in the other thread won't be considered.
- For messages received on a blocking receive methods (without callback), auto-ack is
performed immediately when the message is passed to the receive (..) method.
MessageAcknowledgementConfiguration withMessageClientAcknowledgement()
Client message acknowledgement is default behaviour, and this method's purpose is to switch back to client acknowledgement after auto-ack was turned on.
Copyright 2019-2023 Solace Corporation. All rights reserved.