![]() |
Habari STOMP Client for ActiveMQ 9.4
Object Pascal STOMP client library for Apache ActiveMQ
|
Encapsulates a set of connection configuration parameters that has been defined by an administrator. More...
Public Member Functions | |
IConnection | CreateConnection () |
Creates a connection with the default user identity. | |
IConnection | CreateConnection (const string UserName, const string Password) |
Creates a connection with the specified user identity. | |
IMQContext | CreateContext () |
Creates a messaging context with default settings. | |
IMQContext | CreateContext (const TAcknowledgementMode AcknowledgeMode) |
Creates a messaging context with the specified acknowledgment mode. | |
IMQContext | CreateContext (const string Username, const string Password) |
Creates a messaging context with the specified user credentials. | |
IMQContext | CreateContext (const string Username, const string Password, const TAcknowledgementMode AcknowledgeMode) |
Creates a messaging context with the specified user credentials and acknowledgment mode. | |
TBTAbstractConnectionFactory () | |
TBTAbstractConnectionFactory (const string BrokerURL) | |
TBTAbstractConnectionFactory (const string UserName, const string Password, const string BrokerURL) | |
TBTConnection | CreateMQConnection () |
Creates a connection with the default user identity. | |
TBTConnection | CreateMQConnection (const string UserName, const string Password) |
Creates a connection with the specified user identity. |
Public Attributes | |
string | ClientID |
Specifies the client ID to be used for the created connection. | |
Integer | ConnectTimeOut |
Specifies the connection timeout in milliseconds. | |
string | UserName |
Specifies the username to be used by connections created by this factory. | |
string | Password |
Specifies the password to be used by connections created by this factory. | |
string | BrokerURL |
Specifies the connection URL used to connect to the broker. | |
Integer | SendTimeOut |
Specifies the send timeout in milliseconds. |
Protected Member Functions | |
TBTAbstractTransport | CreateTransport () |
IClientLibraryInfo | ClientLibraryInfo () |
Retrieves an IClientLibraryInfo instance. |
Encapsulates a set of connection configuration parameters that has been defined by an administrator.
A client uses it to create a connection with a provider.
A connection factory instance is usually created and configured only once.
It then may be used to create actual connection objects when needed. For example, a worker thread may create the connection factory at program start-up and use it to create a new connection object whenever a connection failure occurred.
The TBTAbstractConnectionFactory introduces configuration properties which are only needed at the time of instantiation. They are intentionally not part of the IConnectionFactory methods.
TBTAbstractConnectionFactory::TBTAbstractConnectionFactory | ( | ) |
TBTAbstractConnectionFactory::TBTAbstractConnectionFactory | ( | const string | BrokerURL | ) |
TBTAbstractConnectionFactory::TBTAbstractConnectionFactory | ( | const string | UserName, |
const string | Password, | ||
const string | BrokerURL ) |
|
protected |
Retrieves an IClientLibraryInfo instance.
Implements IClientLibraryInfoProvider.
IConnection TBTAbstractConnectionFactory::CreateConnection | ( | ) |
Creates a connection with the default user identity.
The connection is created in a stopped mode, meaning no messages will be delivered until the Connection.Start method is explicitly called.
Implements IConnectionFactory.
IConnection TBTAbstractConnectionFactory::CreateConnection | ( | const string | Username, |
const string | Password ) |
Creates a connection with the specified user identity.
The connection is created in a stopped mode, meaning no messages will be delivered until the Connection.Start method is explicitly called.
Username | The username for the connection. |
Password | The password for the connection. |
Implements IConnectionFactory.
IMQContext TBTAbstractConnectionFactory::CreateContext | ( | ) |
Creates a messaging context with default settings.
Implements IConnectionFactory.
IMQContext TBTAbstractConnectionFactory::CreateContext | ( | const string | Username, |
const string | Password ) |
Creates a messaging context with the specified user credentials.
Username | The username for the context. |
Password | The password for the context. |
Implements IConnectionFactory.
IMQContext TBTAbstractConnectionFactory::CreateContext | ( | const string | Username, |
const string | Password, | ||
const TAcknowledgementMode | AcknowledgeMode ) |
Creates a messaging context with the specified user credentials and acknowledgment mode.
Username | The username for the context. |
Password | The password for the context. |
AcknowledgeMode | The acknowledgment mode for the context. |
Implements IConnectionFactory.
IMQContext TBTAbstractConnectionFactory::CreateContext | ( | const TAcknowledgementMode | AcknowledgeMode | ) |
Creates a messaging context with the specified acknowledgment mode.
AcknowledgeMode | The acknowledgment mode for the context. |
Implements IConnectionFactory.
TBTConnection TBTAbstractConnectionFactory::CreateMQConnection | ( | ) |
Creates a connection with the default user identity.
The connection is created in a stopped mode, meaning no messages will be delivered until the Connection.Start method is explicitly called.
TBTConnection TBTAbstractConnectionFactory::CreateMQConnection | ( | const string | UserName, |
const string | Password ) |
Creates a connection with the specified user identity.
The connection is created in a stopped mode, meaning no messages will be delivered until the Connection.Start method is explicitly called.
UserName | The username for the connection. |
Password | The password for the connection. |
|
protected |
string TBTAbstractConnectionFactory::BrokerURL |
Specifies the connection URL used to connect to the broker.
This URL defines the protocol, host, port, and optionally the username and password for the connection.
string TBTAbstractConnectionFactory::ClientID |
Specifies the client ID to be used for the created connection.
Integer TBTAbstractConnectionFactory::ConnectTimeOut |
Specifies the connection timeout in milliseconds.
string TBTAbstractConnectionFactory::Password |
Specifies the password to be used by connections created by this factory.
Integer TBTAbstractConnectionFactory::SendTimeOut |
Specifies the send timeout in milliseconds.
string TBTAbstractConnectionFactory::UserName |
Specifies the username to be used by connections created by this factory.