Habari STOMP Client for RabbitMQ 10.3-RC1
Object Pascal STOMP client library for RabbitMQ
Loading...
Searching...
No Matches
IFailoverProtocol Interface Reference

Enables the failover:(uri1,uri2,...) transport for a connection from code, replacing the HABARI_ENABLE_FAILOVER_PROTOCOL compile define. More...

Inheritance diagram for IFailoverProtocol:
TBTMQContext

Public Attributes

Boolean EnableFailoverProtocol
 When True, a failover: connection URL activates the failover transport.

Detailed Description

Enables the failover:(uri1,uri2,...) transport for a connection from code, replacing the HABARI_ENABLE_FAILOVER_PROTOCOL compile define.

Query it from an IConnection and set the property before the connection is started:

(Connection as IFailoverProtocol).EnableFailoverProtocol := True;

Since 10.3 an IMQContext implements it too. Set it before the context's first CreateConsumer, CreateProducer, CreateBrowser or Start:

(Context as IFailoverProtocol).EnableFailoverProtocol := True;

Member Data Documentation

◆ EnableFailoverProtocol

Boolean IFailoverProtocol::EnableFailoverProtocol

When True, a failover: connection URL activates the failover transport.

See also
GetEnableFailoverProtocol For reading
SetEnableFailoverProtocol For writing

When False (the default), such a URL raises an "Unsupported Protocol" exception on connect.