Uses of Interface
org.apache.qpid.protonj2.client.Message
Packages that use Message
-
Uses of Message in org.apache.qpid.protonj2.client
Subinterfaces of Message in org.apache.qpid.protonj2.clientModifier and TypeInterfaceDescriptioninterface
Advanced AMQP Message object that provides a thin abstraction to raw AMQP typesinterface
interface
Streaming Message Tracker object used to operate on and track the state of a streamed message at the remote.Methods in org.apache.qpid.protonj2.client that return MessageModifier and TypeMethodDescriptionMessage.absoluteExpiryTime
(long expiryTime) Sets the absolute expiration time value to assign to thisMessage
.Message.annotation
(String key, Object value) Sets the given message annotation value at the given key, replacing any previous value that was assigned to thisMessage
.Sets the body value that is to be conveyed to the remote when this message is sent.Message<?>
Message.contentEncoding
(String contentEncoding) Sets the contentEncoding value to assign to thisMessage
.Message.contentType
(String contentType) Sets the contentType value to assign to thisMessage
.Message.correlationId
(Object correlationId) Sets the correlationId value to assign to thisMessage
.static <E> Message<E>
Message.create()
static Message<byte[]>
Message.create
(byte[] body) static <E> Message<E>
Message.create
(E body) Message.creationTime
(long createTime) Sets the creation time value to assign to thisMessage
.Message.deliveryCount
(long deliveryCount) Sets the value to assign to the delivery count field of thisMessage
.Message.durable
(boolean durable) Controls if the message is marked as durable when sent.Message.firstAcquirer
(boolean firstAcquirer) Sets the value to assign to the first acquirer field of thisMessage
.Sets the given footer value at the given key, replacing any previous value that was assigned to thisMessage
.Message.forEachAnnotation
(BiConsumer<String, Object> action) Invokes the givenBiConsumer
on each message annotation entry carried in thisMessage
.Message.forEachFooter
(BiConsumer<String, Object> action) Invokes the givenBiConsumer
on each footer entry carried in thisMessage
.Message.forEachProperty
(BiConsumer<String, Object> action) Invokes the givenBiConsumer
on each application property entry carried in thisMessage
.Sets the groupId value to assign to thisMessage
.Message.groupSequence
(int groupSequence) Sets the group sequence value to assign to thisMessage
.<E> Message<E>
Delivery.message()
Sets the message Id value to assign to thisMessage
.Message.priority
(byte priority) Sets the relative message priority.Sets the given application property value at the given key, replacing any previous value that was assigned to thisMessage
.Sets the replyTo value to assign to thisMessage
.Message.replyToGroupId
(String replyToGroupId) Sets the replyTo group Id value to assign to thisMessage
.Sets the subject value to assign to thisMessage
.Message.timeToLive
(long timeToLive) Sets the message time to live value.Sets the 'to' value to assign to thisMessage
.Message.userId
(byte[] userId) Sets the user Id value to assign to thisMessage
.Methods in org.apache.qpid.protonj2.client with parameters of type MessageModifier and TypeMethodDescriptionSends the givenMessage
using the internal connection sender.Send the given message immediately if there is credit available or blocks if the link has not yet been granted credit.Send the given message immediately if there is credit available or blocks if the link has not yet been granted credit.Send the given message immediately if there is credit available or blocks if the link has not yet been granted credit or there is a streaming send ongoing.Send the given message immediately if there is credit available or blocks if the link has not yet been granted credit or there is a streaming send ongoing.Send the given message if credit is available or returns null if no credit has been granted to the link at the time of the send attempt.Send the given message if credit is available or returns null if no credit has been granted to the link at the time of the send attempt.Send the given message if credit is available or returns null if no credit has been granted to the link at the time of the send attempt or a streaming send is ongoing.Send the given message if credit is available or returns null if no credit has been granted to the link at the time of the send attempt. -
Uses of Message in org.apache.qpid.protonj2.client.impl
Classes in org.apache.qpid.protonj2.client.impl that implement MessageModifier and TypeClassDescriptionfinal class
Client providedAdvancedMessage
implementation that is used when sending messages from aClientSender
or when decoding an AMQP Transfer for which all frames have arrived.final class
Streamed message delivery context used to request reads of possible split framedTransfer
payload's that comprise a single large overall message.Methods in org.apache.qpid.protonj2.client.impl that return MessageModifier and TypeMethodDescriptionClientMessage.absoluteExpiryTime
(long expiryTime) ClientMessage.contentEncoding
(String contentEncoding) Message<?>
ClientStreamReceiverMessage.contentEncoding
(String contentEncoding) ClientMessage.contentType
(String contentType) ClientMessage.correlationId
(Object correlationId) ClientMessage.creationTime
(long createTime) static Message<?>
ClientMessageSupport.decodeMessage
(ProtonBuffer buffer, Consumer<DeliveryAnnotations> daConsumer) static Message<?>
ClientMessageSupport.decodeMessage
(Decoder decoder, ProtonBuffer buffer, Consumer<DeliveryAnnotations> daConsumer) static Message<?>
ClientMessageSupport.decodeMessage
(Decoder decoder, DecoderState decoderState, ProtonBuffer buffer, Consumer<DeliveryAnnotations> daConsumer) ClientMessage.forEachAnnotation
(BiConsumer<String, Object> action) ClientMessage.forEachFooter
(BiConsumer<String, Object> action) ClientMessage.forEachProperty
(BiConsumer<String, Object> action) ClientMessage.groupSequence
(int groupSequence) <E> Message<E>
ClientDelivery.message()
ClientMessage.replyToGroupId
(String replyToGroupId) ClientMessage.userId
(byte[] userId) Methods in org.apache.qpid.protonj2.client.impl with parameters of type MessageModifier and TypeMethodDescriptionstatic <E> AdvancedMessage<E>
ClientMessageSupport.convertMessage
(Message<E> message) Converts aMessage
instance into aClientMessage
instance either by cast or by construction of a new instance with a copy of the values carried in the given message.