TsgcWSPClient_AMQPMethods › EnableChannelEx

EnableChannelEx Method

Resumes message flow on a channel synchronously and returns True on broker confirmation.

Syntax

function EnableChannelEx(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 flow change within aTimeout. (Boolean)

Remarks

Extended synchronous variant of EnableChannel. Blocks until the broker sends channel.flow-ok or until aTimeout expires.

Example

sgcWSPClient_AMQP1.EnableChannelEx('ch1');

Back to Methods