Settings for AMQP connections to the broker.
More...
#include <qmf/engine/ConnectionSettings.h>
List of all members.
Detailed Description
Settings for AMQP connections to the broker.
Definition at line 37 of file ConnectionSettings.h.
Constructor & Destructor Documentation
Create a set of default connection settings.
If no further attributes are set, the settings will cause a connection to be made to the default broker (on localhost or at a host/port supplied by service discovery) and authentication will be the best-available (GSSAPI/Kerberos, Anonymous, Plain with prompts for username and password).
Create a set of connection settings by URL.
- Parameters:
-
url | Universal resource locator describing the broker address and additional attributes. |
The URL is of the form: amqp[s]://host[:port][?key=value[&key=value]*]
For example: amqp://localhost amqp://broker?transport=rdma&authmech=GSSAPI&authservice=qpidd amqps://broker?authmech=PLAIN&authuser=guest&authpass=guest
Destroy the connection settings object.
Member Function Documentation
Shortcuts for setting authentication mechanisms.
- Parameters:
-
username | Null-terminated authentication user name. |
password | Null-terminated authentication password. |
serviceName | Null-terminated GSSAPI service name (Kerberos service principal) |
minSsf | Minimum security factor for connections. 0 = encryption not required. |
maxSsf | Maximum security factor for connections. 0 = encryption not permitted. |
Get the value of an attribute.
- Parameters:
-
key | A null-terminated attribute name. |
- Returns:
- The value associated with the attribute name.
Get the attribute string (the portion of the URL following the '?') for the settings.
- Returns:
- A pointer to the attribute string. If the content of this string needs to be available beyond the scope of the calling function, it should be copied. The returned pointer may become invalid if the set of attributes is changed.
Set an attribute to control connection setup.
- Parameters:
-
key | A null-terminated string that is an attribute name. |
value | Reference to a value to be stored as the attribute. The type of the value is specific to the key. |
- Returns:
- True if success, False if invalid attribute
Shortcut for setting connection retry attributes.
- Parameters:
-
delayMin | Minimum delay (in seconds) between connection attempts. |
delaxMax | Maximum delay (in seconds) between connection attempts. |
delayFactor | Factor to multiply the delay by between failed connection attempts. |
Shortcuts for setting the transport for the connection.
- Parameters:
-
port | The port value for the connection address. |
The documentation for this class was generated from the following file: