TsgcWSPClient_AMQP1Properties › AMQPOptions

AMQPOptions Property

Container-level parameters negotiated with the peer during the AMQP 1.0 Open frame (container-id, channel-max, max-frame-size, idle-timeout and SASL/link windowing).

Syntax

property AMQPOptions: TsgcAMQP1Options read FAMQPOptions write SetAMQPOptions;

Default Value

Auto-generated ContainerId, ChannelMax=65535, MaxFrameSize=65536, IdleTimeout=0

Remarks

Published sub-properties configure the container and its Open/Begin/Attach negotiation. Because AMQP 1.0 is symmetric, every value the client advertises is echoed or clamped by the peer; inspect OnAMQPConnect to see what the broker returned.

Example


oAMQP1 := TsgcWSPClient_AMQP1.Create(nil);
oAMQP1.AMQPOptions.ContainerId := 'delphi-app-1';
oAMQP1.AMQPOptions.ChannelMax := 255;
oAMQP1.AMQPOptions.MaxFrameSize := 65536;
oAMQP1.AMQPOptions.IdleTimeout := 30000;
oAMQP1.AMQPOptions.WindowSize := 100;

Back to Properties