public interface PutMessage extends QueueEvent
Modifier and Type | Method and Description |
---|---|
CorrelationId |
correlationId()
Get correlation Id of the message
|
MessageProperties |
messageProperties()
Get reference to the message properties object.
|
Queue |
queue()
Returns an interface to the queue that this message is related to.
|
void |
setCompressionAlgorithm(CompressionAlgorithm algorithm)
Sets message payload compression algorithm.
|
CorrelationId |
setCorrelationId()
Sets and returns a new
CorrelationId that contains an auto-assigned integer value
starting from 1 and up to 0xFFFFFF . |
CorrelationId |
setCorrelationId(Object obj)
Sets and returns a new
CorrelationId that binds an auto-assigned integer value
starting from 1 and up to 0xFFFFFF and the user specified Object . |
CorrelationId setCorrelationId()
CorrelationId
that contains an auto-assigned integer value
starting from 1 and up to 0xFFFFFF
.CorrelationId setCorrelationId(Object obj)
CorrelationId
that binds an auto-assigned integer value
starting from 1 and up to 0xFFFFFF
and the user specified Object
. The user
can expect that a valid CorrelationId
provided to the PutMessage
and the
CorrelationId
obtained from the corresponding AckMessage
will hold the same
Object
available via CorrelationId.userData()
accessor.obj
- user specified objectCorrelationId correlationId()
MessageProperties messageProperties()
Queue queue()
queue
in interface QueueEvent
void setCompressionAlgorithm(CompressionAlgorithm algorithm)
CompressionAlgorithm
for available
optionsalgorithm
- payload compression algorithmCopyright © 2023 Bloomberg L.P.. All rights reserved.