TsgcWSPClient_AMQP1 › Properties › AMQPOptions
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).
property AMQPOptions: TsgcAMQP1Options read FAMQPOptions write SetAMQPOptions;
Auto-generated ContainerId, ChannelMax=65535, MaxFrameSize=65536, IdleTimeout=0
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.
ChannelMax — highest channel number usable on the connection. Channel count = ChannelMax + 1, which caps how many concurrent sessions the container can begin.ContainerId — name the source container advertises in the Open frame. Must be unique to disambiguate this peer; left blank a GUID is generated on construction.CreditSize — default link credit granted to receiver links when flow-control is set up (number of transfers the peer may send before a new Flow frame).IdleTimeout — idle-timeout (ms) advertised in Open. When > 0 the underlying WebSocket heartbeat is enabled at half the negotiated value so empty frames keep the connection alive.MaxFrameSize — largest frame the peer may send to this container; larger payloads are split into multiple Transfer frames.MaxLinksPerSession — ceiling for handle-max when beginning a session (maximum number of sender + receiver links attached to that session).WindowSize — default incoming/outgoing window advertised when beginning a session, i.e. how many transfer frames may be in-flight before a Flow frame.
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;