IFlowSettle Method
Settles a message in a requested way. See Also
Ack(Int64).
Settle has 3 message outcome options:
- Accepted - The message was succesfully processed (the same as Ack(Int64)).
- Failed - The message will be redelivered.
- Rejected - The message is removed from the queue and moved to the DMQ if configured.
The exact behavior of Settle() is controlled by flow property MessageAckMode:
- AutoAck - Messages are acknowledged automatically by the API and calling
this function has no effect.
- ClientAck - Every message received must be acknowledged by the application
through individual calls to Settle().
Settle requires RequiredOutcomeFailed and/or RequiredOutcomeRejected to be enabled to allow "Failed" and/or "Rejected" outcomes, respectively.
Namespace: SolaceSystems.Solclient.MessagingAssembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 10.27.0
ReturnCode Settle(
long ADMessageId,
MessageOutcome outcome
)
- ADMessageId Int64
- ADMessageId of the message to settle.
- outcome MessageOutcome
- type of the settlement outcome.
ReturnCodeWhen successful, it returns
SOLCLIENT_OK.