Uses of Interface
org.apache.qpid.protonj2.client.Message
-
Packages that use Message Package Description org.apache.qpid.protonj2.client org.apache.qpid.protonj2.client.impl -
-
Uses of Message in org.apache.qpid.protonj2.client
Subinterfaces of Message in org.apache.qpid.protonj2.client Modifier and Type Interface Description interface
AdvancedMessage<E>
Advanced AMQP Message object that provides a thin abstraction to raw AMQP typesinterface
StreamReceiverMessage
interface
StreamSenderMessage
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 Message Modifier and Type Method Description Message<E>
Message. absoluteExpiryTime(long expiryTime)
Sets the absolute expiration time value to assign to thisMessage
.Message<E>
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
.Message<E>
Message. body(E value)
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<E>
Message. contentType(String contentType)
Sets the contentType value to assign to thisMessage
.Message<E>
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)
static <E> Message<List<E>>
Message. create(List<E> body)
static <K,V>
Message<Map<K,V>>Message. create(Map<K,V> body)
Message<E>
Message. creationTime(long createTime)
Sets the creation time value to assign to thisMessage
.Message<E>
Message. deliveryCount(long deliveryCount)
Sets the value to assign to the delivery count field of thisMessage
.Message<E>
Message. durable(boolean durable)
Controls if the message is marked as durable when sent.Message<E>
Message. firstAcquirer(boolean firstAcquirer)
Sets the value to assign to the first acquirer field of thisMessage
.Message<E>
Message. footer(String key, Object value)
Sets the given footer value at the given key, replacing any previous value that was assigned to thisMessage
.Message<E>
Message. forEachAnnotation(BiConsumer<String,Object> action)
Invokes the givenBiConsumer
on each message annotation entry carried in thisMessage
.Message<E>
Message. forEachFooter(BiConsumer<String,Object> action)
Invokes the givenBiConsumer
on each footer entry carried in thisMessage
.Message<E>
Message. forEachProperty(BiConsumer<String,Object> action)
Invokes the givenBiConsumer
on each application property entry carried in thisMessage
.Message<E>
Message. groupId(String groupId)
Sets the groupId value to assign to thisMessage
.Message<E>
Message. groupSequence(int groupSequence)
Sets the group sequence value to assign to thisMessage
.<E> Message<E>
Delivery. message()
Message<E>
Message. messageId(Object messageId)
Sets the message Id value to assign to thisMessage
.Message<E>
Message. priority(byte priority)
Sets the relative message priority.Message<E>
Message. property(String key, Object value)
Sets the given application property value at the given key, replacing any previous value that was assigned to thisMessage
.Message<E>
Message. replyTo(String replyTo)
Sets the replyTo value to assign to thisMessage
.Message<E>
Message. replyToGroupId(String replyToGroupId)
Sets the replyTo group Id value to assign to thisMessage
.Message<E>
Message. subject(String subject)
Sets the subject value to assign to thisMessage
.Message<E>
Message. timeToLive(long timeToLive)
Sets the message time to live value.Message<E>
Message. to(String to)
Sets the 'to' value to assign to thisMessage
.Message<E>
Message. userId(byte[] userId)
Sets the user Id value to assign to thisMessage
.Methods in org.apache.qpid.protonj2.client with parameters of type Message Modifier and Type Method Description Tracker
Connection. send(Message<?> message)
Sends the givenMessage
using the internal connection sender.Tracker
Sender. send(Message<?> message)
Send the given message immediately if there is credit available or blocks if the link has not yet been granted credit.Tracker
Sender. send(Message<?> message, Map<String,Object> deliveryAnnotations)
Send the given message immediately if there is credit available or blocks if the link has not yet been granted credit.StreamTracker
StreamSender. send(Message<?> message)
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.StreamTracker
StreamSender. send(Message<?> message, Map<String,Object> deliveryAnnotations)
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.Tracker
Sender. trySend(Message<?> message)
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.Tracker
Sender. trySend(Message<?> message, Map<String,Object> deliveryAnnotations)
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.StreamTracker
StreamSender. trySend(Message<?> message)
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.StreamTracker
StreamSender. trySend(Message<?> message, Map<String,Object> deliveryAnnotations)
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 Message Modifier and Type Class Description class
ClientMessage<E>
Client providedAdvancedMessage
implementation that is used when sending messages from aClientSender
or when decoding an AMQP Transfer for which all frames have arrived.class
ClientStreamReceiverMessage
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 Message Modifier and Type Method Description Message<E>
ClientMessage. absoluteExpiryTime(long expiryTime)
Message<E>
ClientMessage. contentEncoding(String contentEncoding)
Message<?>
ClientStreamReceiverMessage. contentEncoding(String contentEncoding)
Message<E>
ClientMessage. contentType(String contentType)
Message<E>
ClientMessage. correlationId(Object correlationId)
Message<E>
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)
Message<E>
ClientMessage. forEachAnnotation(BiConsumer<String,Object> action)
Message<E>
ClientMessage. forEachFooter(BiConsumer<String,Object> action)
Message<E>
ClientMessage. forEachProperty(BiConsumer<String,Object> action)
Message<E>
ClientMessage. groupId(String groupId)
Message<E>
ClientMessage. groupSequence(int groupSequence)
<E> Message<E>
ClientDelivery. message()
Message<E>
ClientMessage. messageId(Object messageId)
Message<E>
ClientMessage. replyTo(String replyTo)
Message<E>
ClientMessage. replyToGroupId(String replyToGroupId)
Message<E>
ClientMessage. subject(String subject)
Message<E>
ClientMessage. to(String to)
Message<E>
ClientMessage. userId(byte[] userId)
Methods in org.apache.qpid.protonj2.client.impl with parameters of type Message Modifier and Type Method Description static <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.Tracker
ClientConnection. send(Message<?> message)
Tracker
ClientSender. send(Message<?> message)
Tracker
ClientSender. send(Message<?> message, Map<String,Object> deliveryAnnotations)
StreamTracker
ClientStreamSender. send(Message<?> message)
StreamTracker
ClientStreamSender. send(Message<?> message, Map<String,Object> deliveryAnnotations)
Tracker
ClientSender. trySend(Message<?> message)
Tracker
ClientSender. trySend(Message<?> message, Map<String,Object> deliveryAnnotations)
StreamTracker
ClientStreamSender. trySend(Message<?> message)
StreamTracker
ClientStreamSender. trySend(Message<?> message, Map<String,Object> deliveryAnnotations)
-