public interface PushMessage extends QueueEvent
PUSH mesage comes from the broker which sends it to the consumer if it is a subscriber of some
Queue
that has PutMessage
posted by the
producer.
Modifier and Type | Method and Description |
---|---|
ResultCodes.GenericResult |
confirm()
Sends CONFIRM message to the broker that affirms the receiving of this message.
|
MessageProperty |
getProperty(String name)
Returns property with specified (@code name).
|
boolean |
hasMessageProperties()
Returns
true if the application data of this message contains message properties. |
MessageGUID |
messageGUID()
Returns unique
MessageGUID assigned to this message by the broker. |
ByteBuffer[] |
payload()
Returns user payload data of this message.
|
Iterator<MessageProperty> |
propertyIterator()
Returns a standart
Iterator to iterate over existed properties. |
queue
MessageGUID messageGUID()
MessageGUID
assigned to this message by the broker.boolean hasMessageProperties()
true
if the application data of this message contains message properties.true
if the application data has message properties, false
otherwiseMessageProperty
,
MessageProperties
Iterator<MessageProperty> propertyIterator()
Iterator
to iterate over existed properties.MessageProperty getProperty(String name)
name
- property nameByteBuffer[] payload() throws BMQException
BMQException
- in case of any failureResultCodes.GenericResult confirm()
ResultCodes.GenericResult
Copyright © 2023 Bloomberg L.P.. All rights reserved.