![]() |
Habari STOMP Client for RabbitMQ 9.4
Object Pascal STOMP client library for RabbitMQ
|
Interface for consuming messages. More...
Public Member Functions | |
TBTMQConsumer (const ISession Session, const IDestination Destination) | |
Constructor. | |
TBTMQConsumer (const ISession Session, const IDestination Destination, const string MessageSelector) | |
Constructor. |
Protected Member Functions | |
Close () | |
Closes the consumer. | |
string | GetMessageSelector () |
Gets this message consumer's message selector expression. | |
IMessage | Receive () |
Receives the next message produced for this message consumer. | |
IMessage | Receive (const Integer Timeout) |
Receives the next message that arrives within the specified timeout interval. | |
IMessage | ReceiveNoWait () |
Receives the next message if one is immediately available. |
Interface for consuming messages.
TBTMQConsumer::TBTMQConsumer | ( | const ISession | Session, |
const IDestination | Destination ) |
Constructor.
TBTMQConsumer::TBTMQConsumer | ( | const ISession | Session, |
const IDestination | Destination, | ||
const string | MessageSelector ) |
Constructor.
|
protected |
Closes the consumer.
Since a provider may allocate some resources on behalf of a MessageConsumer, clients should close them when they are not needed.
EMQException |
Implements IMQConsumer.
|
protected |
Gets this message consumer's message selector expression.
Implements IMQConsumer.
|
protected |
Receives the next message produced for this message consumer.
Implements IMQConsumer.
|
protected |
Receives the next message that arrives within the specified timeout interval.
Implements IMQConsumer.
|
protected |
Receives the next message if one is immediately available.
Implements IMQConsumer.