![]() |
Habari STOMP Client for Artemis 9.4
Object Pascal STOMP client library for ActiveMQ Artemis
|
Represents a connection with a message broker. More...
Public Member Functions | |
| Start () | |
| Starts (or restarts) a connection's delivery of incoming messages. | |
| Stop () | |
| Temporarily stops a connection's delivery of incoming messages. | |
| Close () | |
| Closes the connection. | |
| ISession | CreateSession (const Boolean Transacted, const TAcknowledgementMode AcknowledgementMode) |
| Creates a new session to work on this connection, specifying transacted and acknowledgeMode. | |
| ISession | CreateSession (const TAcknowledgementMode AcknowledgementMode) |
| Creates a new session to work on this connection, specifying acknowledgeMode. | |
Public Attributes | |
| string | ClientID |
| The client identifier for this connection. | |
Represents a connection with a message broker.
An IConnection object is a client's active connection to its provider.
A connection serves several purposes:
| IConnection::Close | ( | ) |
Closes the connection.
Providers typically allocate significant resources for a connection. Clients should close these resources when they are no longer needed.
| ISession IConnection::CreateSession | ( | const Boolean | Transacted, |
| const TAcknowledgementMode | AcknowledgementMode ) |
Creates a new session to work on this connection, specifying transacted and acknowledgeMode.
| Transacted | - indicates whether the session is transacted |
| AcknowledgementMode | - indicates whether the consumer or the client will acknowledge any messages it receives. |
| ISession IConnection::CreateSession | ( | const TAcknowledgementMode | AcknowledgementMode | ) |
Creates a new session to work on this connection, specifying acknowledgeMode.
| AcknowledgementMode | - indicates whether the consumer or the client will acknowledge any messages it receives. |
| IConnection::Start | ( | ) |
Starts (or restarts) a connection's delivery of incoming messages.
Ignored if the connection is already started.
| IConnection::Stop | ( | ) |
Temporarily stops a connection's delivery of incoming messages.
| string IConnection::ClientID |
The client identifier for this connection.
The purpose of the client identifier is to associate a connection and its objects with a state maintained on behalf of the client by a provider. The only such state identified by the API is that required to support durable subscriptions.