TsgcWSPClient_AMQP › Properties › AMQPOptions
Negotiated AMQP 0-9-1 connection-tune parameters sent to the broker in Connection.StartOk / Connection.TuneOk.
property AMQPOptions: TsgcWSAMQP_Options read FAMQPOptions write SetAMQPOptions;
Locale="en_US", MaxChannels=65535, MaxFrameSize=2147483647, VirtualHost="/"
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.
Locale — message locale advertised in Connection.StartOk. Default "en_US"; must be one of the locales the server lists in Connection.Start.MaxChannels — maximum number of simultaneous channels on this connection. Default 65535 (AMQP 0-9-1 hard limit). The broker normally lowers this to its configured channel_max.MaxFrameSize — maximum AMQP frame size in bytes. Default 2147483647. RabbitMQ typically caps this at 131072 (128 KB); larger content bodies are split into content frames automatically.VirtualHost — AMQP virtual host sent in Connection.Open. Default "/". Used by RabbitMQ (and any AMQP 0-9-1 broker) to isolate exchanges, queues and bindings per tenant.
oAMQP := TsgcWSPClient_AMQP.Create(nil);
oAMQP.AMQPOptions.Locale := 'en_US';
oAMQP.AMQPOptions.MaxChannels := 100;
oAMQP.AMQPOptions.MaxFrameSize := 131072;
oAMQP.AMQPOptions.VirtualHost := '/';