TsgcWSPClient_AMQPProperties › AMQPOptions

AMQPOptions Property

Negotiated AMQP 0-9-1 connection-tune parameters sent to the broker in Connection.StartOk / Connection.TuneOk.

Syntax

property AMQPOptions: TsgcWSAMQP_Options read FAMQPOptions write SetAMQPOptions;

Default Value

Locale="en_US", MaxChannels=65535, MaxFrameSize=2147483647, VirtualHost="/"

Remarks

Published sub-properties configure the tunable parameters of the AMQP 0-9-1 handshake. All four fields are negotiated with the broker during Connection.StartOk / Connection.TuneOk, so the broker may return lower limits than the client requested.

Example


oAMQP := TsgcWSPClient_AMQP.Create(nil);
oAMQP.AMQPOptions.Locale := 'en_US';
oAMQP.AMQPOptions.MaxChannels := 100;
oAMQP.AMQPOptions.MaxFrameSize := 131072;
oAMQP.AMQPOptions.VirtualHost := '/';

Back to Properties