![]() |
Habari STOMP Client for OpenMQ 9.0
Object Pascal STOMP client library for OpenMQ
|
A ConnectionFactory is used for creating Connections. More...
Public Member Functions | |
| 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. | |
| 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 () |
| IMQContext | CreateContext (const TAcknowledgementMode AcknowledgeMode) |
| IMQContext | CreateContext (const string Username, const string Password) |
| IMQContext | CreateContext (const string Username, const string Password, const TAcknowledgementMode AcknowledgeMode) |
| IClientLibraryInfo | ClientLibraryInfo () |
| Returns the client library information. | |
Public Attributes | |
| string | ClientID |
| The clientID to use for the created connection. | |
| Integer | ConnectTimeOut |
| Connect time out (in milliseconds) | |
| string | UserName |
| The userName used by connections created by this factory. | |
| string | Password |
| The password used for connections created from this factory. | |
| string | BrokerURL |
| The connection URL used to connect to the broker. | |
| Integer | SendTimeOut |
| Send time out. | |
Protected Member Functions | |
| TBTAbstractTransport | CreateTransport () |
A ConnectionFactory is used for creating Connections.
A ConnectionFactory object 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.
| TBTAbstractConnectionFactory::TBTAbstractConnectionFactory | ( | ) |
| TBTAbstractConnectionFactory::TBTAbstractConnectionFactory | ( | const string | BrokerURL | ) |
| TBTAbstractConnectionFactory::TBTAbstractConnectionFactory | ( | const string | UserName, |
| const string | Password, | ||
| const string | BrokerURL ) |
| IClientLibraryInfo TBTAbstractConnectionFactory::ClientLibraryInfo | ( | ) |
Returns the client library information.
| IConnection TBTAbstractConnectionFactory::CreateConnection | ( | ) |
Creates a connection with the default user identity.
The connection is created in stopped mode. No messages will be delivered until the Connection.Start method is explicitly called.
| IConnection TBTAbstractConnectionFactory::CreateConnection | ( | const string | UserName, |
| const string | Password ) |
Creates a connection with the specified user identity.
The connection is reated in stopped mode. No messages will be delivered until the Connection.Start method is explicitly called.
| IMQContext TBTAbstractConnectionFactory::CreateContext | ( | ) |
| IMQContext TBTAbstractConnectionFactory::CreateContext | ( | const string | Username, |
| const string | Password ) |
| IMQContext TBTAbstractConnectionFactory::CreateContext | ( | const string | Username, |
| const string | Password, | ||
| const TAcknowledgementMode | AcknowledgeMode ) |
| IMQContext TBTAbstractConnectionFactory::CreateContext | ( | const TAcknowledgementMode | AcknowledgeMode | ) |
| TBTConnection TBTAbstractConnectionFactory::CreateMQConnection | ( | ) |
Creates a connection with the default user identity.
The connection is created in stopped mode. 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 stopped mode. No messages will be delivered until the Connection.Start method is explicitly called.
|
protected |
| string TBTAbstractConnectionFactory::BrokerURL |
The connection URL used to connect to the broker.
| string TBTAbstractConnectionFactory::ClientID |
The clientID to use for the created connection.
Note that this can only be used by one connection at once so generally its a better idea to set the clientID on a Connection.
| Integer TBTAbstractConnectionFactory::ConnectTimeOut |
Connect time out (in milliseconds)
| string TBTAbstractConnectionFactory::Password |
The password used for connections created from this factory.
| Integer TBTAbstractConnectionFactory::SendTimeOut |
Send time out.
| string TBTAbstractConnectionFactory::UserName |
The userName used by connections created by this factory.