TsgcWSPClient_AMQPMethods › CommitTransactionEx

CommitTransactionEx Method

Commits the transaction synchronously and returns True on tx.commit-ok.

Syntax

function CommitTransactionEx(const aChannel: string; aTimeout: Integer = CS_AMQP_DEFAULT_TIMEOUT): Boolean;

Parameters

NameTypeDescription
aChannelconst stringName of the open AMQP channel on which the operation is issued.
aTimeoutIntegerMaximum time in milliseconds to wait for the broker confirmation before returning False.

Return Value

True when the broker confirmed the commit within aTimeout. (Boolean)

Remarks

Extended synchronous variant of CommitTransaction. Blocks until tx.commit-ok is received from the broker or aTimeout elapses.

Example

sgcWSPClient_AMQP1.CommitTransactionEx('ch1');

Back to Methods