549 строки
40 KiB
YAML
549 строки
40 KiB
YAML
### YamlMime:JavaType
|
|
uid: "com.microsoft.azure.servicebus.Message"
|
|
fullName: "com.microsoft.azure.servicebus.Message"
|
|
name: "Message"
|
|
nameWithType: "Message"
|
|
inheritances:
|
|
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
|
|
inheritedClassMethods:
|
|
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
|
|
methodsRef:
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
|
|
syntax: "public final class **Message**</br> implements <a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html\">Serializable</a>, <xref href=\"com.microsoft.azure.servicebus.IMessage?alt=com.microsoft.azure.servicebus.IMessage&text=IMessage\" data-throw-if-not-resolved=\"False\" />"
|
|
constructors:
|
|
- uid: "com.microsoft.azure.servicebus.Message.Message()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.Message()"
|
|
name: "Message()"
|
|
nameWithType: "Message.Message()"
|
|
summary: "Creates an empty message with an empty byte array as body."
|
|
syntax: "public Message()"
|
|
desc: "Creates an empty message with an empty byte array as body."
|
|
- uid: "com.microsoft.azure.servicebus.Message.Message(byte[])"
|
|
fullName: "com.microsoft.azure.servicebus.Message.Message(byte[] content)"
|
|
name: "Message(byte[] content)"
|
|
nameWithType: "Message.Message(byte[] content)"
|
|
summary: "Creates a message from a byte array."
|
|
parameters:
|
|
- description: "content of the message"
|
|
name: "content"
|
|
type: "<xref href=\"byte?alt=byte&text=byte\" data-throw-if-not-resolved=\"False\" />[]"
|
|
syntax: "public Message(byte[] content)"
|
|
desc: "Creates a message from a byte array. Message body type is set to binary."
|
|
- uid: "com.microsoft.azure.servicebus.Message.Message(byte[],java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.Message(byte[] content, String contentType)"
|
|
name: "Message(byte[] content, String contentType)"
|
|
nameWithType: "Message.Message(byte[] content, String contentType)"
|
|
summary: "Creates a message from a byte array."
|
|
parameters:
|
|
- description: "content of the message"
|
|
name: "content"
|
|
type: "<xref href=\"byte?alt=byte&text=byte\" data-throw-if-not-resolved=\"False\" />[]"
|
|
- description: "content type of the message"
|
|
name: "contentType"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public Message(byte[] content, String contentType)"
|
|
desc: "Creates a message from a byte array. Message body type is set to binary."
|
|
- uid: "com.microsoft.azure.servicebus.Message.Message(com.microsoft.azure.servicebus.MessageBody)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.Message(MessageBody body)"
|
|
name: "Message(MessageBody body)"
|
|
nameWithType: "Message.Message(MessageBody body)"
|
|
summary: "Creates a message from message body."
|
|
parameters:
|
|
- description: "message body"
|
|
name: "body"
|
|
type: "<xref href=\"com.microsoft.azure.servicebus.MessageBody?alt=com.microsoft.azure.servicebus.MessageBody&text=MessageBody\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public Message(MessageBody body)"
|
|
desc: "Creates a message from message body."
|
|
- uid: "com.microsoft.azure.servicebus.Message.Message(com.microsoft.azure.servicebus.MessageBody,java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.Message(MessageBody body, String contentType)"
|
|
name: "Message(MessageBody body, String contentType)"
|
|
nameWithType: "Message.Message(MessageBody body, String contentType)"
|
|
summary: "Creates a message from message body."
|
|
parameters:
|
|
- description: "message body"
|
|
name: "body"
|
|
type: "<xref href=\"com.microsoft.azure.servicebus.MessageBody?alt=com.microsoft.azure.servicebus.MessageBody&text=MessageBody\" data-throw-if-not-resolved=\"False\" />"
|
|
- description: "content type of the message"
|
|
name: "contentType"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public Message(MessageBody body, String contentType)"
|
|
desc: "Creates a message from message body."
|
|
- uid: "com.microsoft.azure.servicebus.Message.Message(java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.Message(String content)"
|
|
name: "Message(String content)"
|
|
nameWithType: "Message.Message(String content)"
|
|
summary: "Creates a message from a string."
|
|
parameters:
|
|
- description: "content of the message."
|
|
name: "content"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public Message(String content)"
|
|
desc: "Creates a message from a string. For backward compatibility reasons, the string is converted to a byte array and message body type is set to binary."
|
|
- uid: "com.microsoft.azure.servicebus.Message.Message(java.lang.String,byte[],java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.Message(String messageId, byte[] content, String contentType)"
|
|
name: "Message(String messageId, byte[] content, String contentType)"
|
|
nameWithType: "Message.Message(String messageId, byte[] content, String contentType)"
|
|
summary: "Creates a message from a byte array."
|
|
parameters:
|
|
- description: "id of the message"
|
|
name: "messageId"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- description: "content of the message"
|
|
name: "content"
|
|
type: "<xref href=\"byte?alt=byte&text=byte\" data-throw-if-not-resolved=\"False\" />[]"
|
|
- description: "content type of the message"
|
|
name: "contentType"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public Message(String messageId, byte[] content, String contentType)"
|
|
desc: "Creates a message from a byte array. Message body type is set to binary."
|
|
- uid: "com.microsoft.azure.servicebus.Message.Message(java.lang.String,com.microsoft.azure.servicebus.MessageBody,java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.Message(String messageId, MessageBody body, String contentType)"
|
|
name: "Message(String messageId, MessageBody body, String contentType)"
|
|
nameWithType: "Message.Message(String messageId, MessageBody body, String contentType)"
|
|
summary: "Creates a message from message body."
|
|
parameters:
|
|
- description: "id of the message"
|
|
name: "messageId"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- description: "message body"
|
|
name: "body"
|
|
type: "<xref href=\"com.microsoft.azure.servicebus.MessageBody?alt=com.microsoft.azure.servicebus.MessageBody&text=MessageBody\" data-throw-if-not-resolved=\"False\" />"
|
|
- description: "content type of the message"
|
|
name: "contentType"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public Message(String messageId, MessageBody body, String contentType)"
|
|
desc: "Creates a message from message body."
|
|
- uid: "com.microsoft.azure.servicebus.Message.Message(java.lang.String,java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.Message(String content, String contentType)"
|
|
name: "Message(String content, String contentType)"
|
|
nameWithType: "Message.Message(String content, String contentType)"
|
|
summary: "Creates a message from a string."
|
|
parameters:
|
|
- description: "content of the message"
|
|
name: "content"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- description: "content type of the message"
|
|
name: "contentType"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public Message(String content, String contentType)"
|
|
desc: "Creates a message from a string. For backward compatibility reasons, the string is converted to a byte array and message body type is set to binary."
|
|
- uid: "com.microsoft.azure.servicebus.Message.Message(java.lang.String,java.lang.String,java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.Message(String messageId, String content, String contentType)"
|
|
name: "Message(String messageId, String content, String contentType)"
|
|
nameWithType: "Message.Message(String messageId, String content, String contentType)"
|
|
summary: "Creates a message from a string."
|
|
parameters:
|
|
- description: "id of the message"
|
|
name: "messageId"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- description: "content of the message"
|
|
name: "content"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- description: "content type of the message"
|
|
name: "contentType"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public Message(String messageId, String content, String contentType)"
|
|
desc: "Creates a message from a string. For backward compatibility reasons, the string is converted to a byte array and message body type is set to binary."
|
|
methods:
|
|
- uid: "com.microsoft.azure.servicebus.Message.createCopy()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.createCopy()"
|
|
name: "createCopy()"
|
|
nameWithType: "Message.createCopy()"
|
|
summary: "Creates a shallow copy of this message."
|
|
syntax: "public IMessage createCopy()"
|
|
desc: "Creates a shallow copy of this message."
|
|
returns:
|
|
type: "<xref href=\"com.microsoft.azure.servicebus.IMessage?alt=com.microsoft.azure.servicebus.IMessage&text=IMessage\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getBody()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getBody()"
|
|
name: "getBody()"
|
|
nameWithType: "Message.getBody()"
|
|
summary: "Gets the body of this message as a byte array."
|
|
syntax: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html\">@Deprecated</a></br>public byte[] getBody()"
|
|
desc: "Gets the body of this message as a byte array. It is up to client applications to decode the bytes."
|
|
returns:
|
|
type: "<xref href=\"byte?alt=byte&text=byte\" data-throw-if-not-resolved=\"False\" />[]"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getContentType()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getContentType()"
|
|
name: "getContentType()"
|
|
nameWithType: "Message.getContentType()"
|
|
summary: "Gets the content type of this message."
|
|
syntax: "public String getContentType()"
|
|
desc: "Gets the content type of this message. Optionally describes the payload of the message, with a descriptor following the format of RFC2045, Section 5, for example \"application/json\". Note that content type is not same as message body type."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getCorrelationId()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getCorrelationId()"
|
|
name: "getCorrelationId()"
|
|
nameWithType: "Message.getCorrelationId()"
|
|
summary: "Gets a correlation identifier."
|
|
syntax: "public String getCorrelationId()"
|
|
desc: "Gets a correlation identifier. Allows an application to specify a context for the message for the purposes of correlation, for example reflecting the MessageId of a message that is being replied to."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getDeadLetterSource()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getDeadLetterSource()"
|
|
name: "getDeadLetterSource()"
|
|
nameWithType: "Message.getDeadLetterSource()"
|
|
summary: "Gets the name of the queue or subscription that this message was enqueued on, before it was deadlettered."
|
|
syntax: "public String getDeadLetterSource()"
|
|
desc: "Gets the name of the queue or subscription that this message was enqueued on, before it was deadlettered. This value is only set in messages that have been dead-lettered and subsequently auto-forwarded from the dead-letter queue to another entity. Indicates the entity in which the message was dead-lettered. This property is read-only."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getDeliveryCount()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getDeliveryCount()"
|
|
name: "getDeliveryCount()"
|
|
nameWithType: "Message.getDeliveryCount()"
|
|
summary: "Gets the number of the times this message was delivered to clients."
|
|
syntax: "public long getDeliveryCount()"
|
|
desc: "Gets the number of the times this message was delivered to clients. The count is incremented when a message lock expires, or the message is explicitly abandoned by the receiver. This property is read-only."
|
|
returns:
|
|
type: "<xref href=\"long?alt=long&text=long\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getEnqueuedTimeUtc()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getEnqueuedTimeUtc()"
|
|
name: "getEnqueuedTimeUtc()"
|
|
nameWithType: "Message.getEnqueuedTimeUtc()"
|
|
summary: "Gets the instant at which this message was enqueued in Azure Service Bus."
|
|
syntax: "public Instant getEnqueuedTimeUtc()"
|
|
desc: "Gets the instant at which this message was enqueued in Azure Service Bus. The UTC instant at which the message has been accepted and stored in the entity. For scheduled messages, this reflects the time when the message was activated. This value can be used as an authoritative and neutral arrival time indicator when the receiver does not want to trust the sender's clock. This property is read-only."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html\">Instant</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getExpiresAtUtc()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getExpiresAtUtc()"
|
|
name: "getExpiresAtUtc()"
|
|
nameWithType: "Message.getExpiresAtUtc()"
|
|
summary: "Gets the instant at which this message will expire."
|
|
syntax: "public Instant getExpiresAtUtc()"
|
|
desc: "Gets the instant at which this message will expire. The value is the UTC instant for when the message is scheduled for removal and will no longer available for retrieval from the entity due to expiration. Expiry is controlled by the <xref uid=\"com.microsoft.azure.servicebus.Message.getTimeToLive()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TimeToLive\"></xref> property. This property is computed from <xref uid=\"com.microsoft.azure.servicebus.Message.getEnqueuedTimeUtc()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"EnqueuedTimeUtc\"></xref>\\+<xref uid=\"com.microsoft.azure.servicebus.Message.getTimeToLive()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TimeToLive\"></xref>."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html\">Instant</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getLabel()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getLabel()"
|
|
name: "getLabel()"
|
|
nameWithType: "Message.getLabel()"
|
|
summary: "Gets the application specific message label."
|
|
syntax: "public String getLabel()"
|
|
desc: "Gets the application specific message label. This property enables the application to indicate the purpose of the message to the receiver in a standardized fashion, similar to an email subject line. The mapped AMQP property is \"subject\"."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getLockToken()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getLockToken()"
|
|
name: "getLockToken()"
|
|
nameWithType: "Message.getLockToken()"
|
|
summary: "Gets the lock token for the current message."
|
|
syntax: "public UUID getLockToken()"
|
|
desc: "Gets the lock token for the current message. The lock token is a reference to the lock that is being held by the broker in PEEKLOCK mode. Locks are used to explicitly settle messages as explained in the [product documentation in more detail][]. The token can also be used to pin the lock permanently through the [Deferral API][] and, with that, take the message out of the regular delivery state flow. This property is read-only.\n\n\n[product documentation in more detail]: https://docs.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement\n[Deferral API]: https://docs.microsoft.com/azure/service-bus-messaging/message-deferral"
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html\">UUID</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getLockedUntilUtc()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getLockedUntilUtc()"
|
|
name: "getLockedUntilUtc()"
|
|
nameWithType: "Message.getLockedUntilUtc()"
|
|
summary: "Gets the instant at which the lock of this message expires."
|
|
syntax: "public Instant getLockedUntilUtc()"
|
|
desc: "Gets the instant at which the lock of this message expires. For messages retrieved under a lock (peek-lock receive mode, not pre-settled) this property reflects the UTC instant until which the message is held locked in the queue/subscription. When the lock expires, the <xref uid=\"com.microsoft.azure.servicebus.Message.getDeliveryCount()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"DeliveryCount\"></xref> is incremented and the message is again available for retrieval. This property is read-only."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html\">Instant</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getMessageBody()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getMessageBody()"
|
|
name: "getMessageBody()"
|
|
nameWithType: "Message.getMessageBody()"
|
|
summary: "Gets the body of this message."
|
|
syntax: "public MessageBody getMessageBody()"
|
|
desc: "Gets the body of this message. Client applications should extract message content based on body type."
|
|
returns:
|
|
type: "<xref href=\"com.microsoft.azure.servicebus.MessageBody?alt=com.microsoft.azure.servicebus.MessageBody&text=MessageBody\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getMessageId()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getMessageId()"
|
|
name: "getMessageId()"
|
|
nameWithType: "Message.getMessageId()"
|
|
summary: "Gets the Id of this message."
|
|
syntax: "public String getMessageId()"
|
|
desc: "Gets the Id of this message. The message identifier is an application-defined value that uniquely identifies the message and its payload. The identifier is a free-form string and can reflect a GUID or an identifier derived from the application context. If enabled, the [duplicate detection][] feature identifies and removes second and further submissions of messages with the same MessageId.\n\n\n[duplicate detection]: https://docs.microsoft.com/azure/service-bus-messaging/duplicate-detection"
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getPartitionKey()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getPartitionKey()"
|
|
name: "getPartitionKey()"
|
|
nameWithType: "Message.getPartitionKey()"
|
|
summary: "Gets the partition key for sending a message to a partitioned entity."
|
|
syntax: "public String getPartitionKey()"
|
|
desc: "Gets the partition key for sending a message to a partitioned entity. For [partitioned entities][], setting this value enables assigning related messages to the same internal partition, so that submission sequence order is correctly recorded. The partition is chosen by a hash function over this value and cannot be chosen directly. For session-aware entities, the <xref uid=\"com.microsoft.azure.servicebus.Message.getSessionId()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"SessionId \"></xref> property overrides this value.\n\n\n[partitioned entities]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-partitioning"
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getProperties()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getProperties()"
|
|
name: "getProperties()"
|
|
nameWithType: "Message.getProperties()"
|
|
summary: "Gets the map of user application properties of this message."
|
|
syntax: "public Map<String,Object> getProperties()"
|
|
desc: "Gets the map of user application properties of this message. Client applications can set user properties (headers) on the message using this map."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/Map.html\">Map</a><<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>,<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getReplyTo()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getReplyTo()"
|
|
name: "getReplyTo()"
|
|
nameWithType: "Message.getReplyTo()"
|
|
summary: "Gets the address of an entity to send replies to."
|
|
syntax: "public String getReplyTo()"
|
|
desc: "Gets the address of an entity to send replies to. This optional and application-defined value is a standard way to express a reply path to the receiver of the message. When a sender expects a reply, it sets the value to the absolute or relative path of the queue or topic it expects the reply to be sent to."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getReplyToSessionId()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getReplyToSessionId()"
|
|
name: "getReplyToSessionId()"
|
|
nameWithType: "Message.getReplyToSessionId()"
|
|
summary: "Gets or sets a session identifier augmenting the <xref uid=\"com.microsoft.azure.servicebus.Message.getReplyTo()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ReplyTo\"></xref> address."
|
|
syntax: "public String getReplyToSessionId()"
|
|
desc: "Gets or sets a session identifier augmenting the <xref uid=\"com.microsoft.azure.servicebus.Message.getReplyTo()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ReplyTo\"></xref> address. This value augments the ReplyTo information and specifies which SessionId should be set for the reply when sent to the reply entity."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getScheduledEnqueueTimeUtc()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getScheduledEnqueueTimeUtc()"
|
|
name: "getScheduledEnqueueTimeUtc()"
|
|
nameWithType: "Message.getScheduledEnqueueTimeUtc()"
|
|
summary: "Gets the scheduled enqueue time of this message."
|
|
syntax: "public Instant getScheduledEnqueueTimeUtc()"
|
|
desc: "Gets the scheduled enqueue time of this message. This value is used for delayed message availability. The message is safely added to the queue, but is not considered active and therefore not retrievable until the scheduled enqueue time. Mind that the message may not be activated (enqueued) at the exact given instant; the actual activation time depends on the queue's workload and its state."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html\">Instant</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getScheduledEnqueuedTimeUtc()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getScheduledEnqueuedTimeUtc()"
|
|
name: "getScheduledEnqueuedTimeUtc()"
|
|
nameWithType: "Message.getScheduledEnqueuedTimeUtc()"
|
|
summary: "Gets the scheduled enqueue time of this message."
|
|
syntax: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html\">@Deprecated</a></br>public Instant getScheduledEnqueuedTimeUtc()"
|
|
desc: "Gets the scheduled enqueue time of this message. This value is used for delayed message availability. The message is safely added to the queue, but is not considered active and therefore not retrievable until the scheduled enqueue time. Mind that the message may not be activated (enqueued) at the exact given instant; the actual activation time depends on the queue's workload and its state."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html\">Instant</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getSequenceNumber()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getSequenceNumber()"
|
|
name: "getSequenceNumber()"
|
|
nameWithType: "Message.getSequenceNumber()"
|
|
summary: "Gets the unique number assigned to a message by Service Bus."
|
|
syntax: "public long getSequenceNumber()"
|
|
desc: "Gets the unique number assigned to a message by Service Bus. The sequence number is a unique 64-bit integer assigned to a message as it is accepted and stored by the broker and functions as its true identifier. For partitioned entities, the topmost 16 bits reflect the partition identifier. Sequence numbers monotonically increase and are gapless. They roll over to 0 when the 48-64 bit range is exhausted. This property is read-only."
|
|
returns:
|
|
type: "<xref href=\"long?alt=long&text=long\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getSessionId()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getSessionId()"
|
|
name: "getSessionId()"
|
|
nameWithType: "Message.getSessionId()"
|
|
summary: "Gets the session identifier for a session-aware entity."
|
|
syntax: "public String getSessionId()"
|
|
desc: "Gets the session identifier for a session-aware entity. For session-aware entities, this application-defined value specifies the session affiliation of the message. Messages with the same session identifier are subject to summary locking and enable exact in-order processing and demultiplexing. For session-unaware entities, this value is ignored."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getTimeToLive()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getTimeToLive()"
|
|
name: "getTimeToLive()"
|
|
nameWithType: "Message.getTimeToLive()"
|
|
summary: "Gets the duration before this message expires."
|
|
syntax: "public Duration getTimeToLive()"
|
|
desc: "Gets the duration before this message expires. This value is the relative duration after which the message expires, starting from the instant the message has been accepted and stored by the broker, as captured in <xref uid=\"com.microsoft.azure.servicebus.Message.getEnqueuedTimeUtc()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"getEnqueuedTimeUtc\"></xref>. When not set explicitly, the assumed value is the DefaultTimeToLive set for the respective queue or topic. A message-level TimeToLive value cannot be longer than the entity's DefaultTimeToLive setting and it is silently adjusted if it does."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getTo()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getTo()"
|
|
name: "getTo()"
|
|
nameWithType: "Message.getTo()"
|
|
summary: "Gets the \"to\" address."
|
|
syntax: "public String getTo()"
|
|
desc: "Gets the \"to\" address."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.getViaPartitionKey()"
|
|
fullName: "com.microsoft.azure.servicebus.Message.getViaPartitionKey()"
|
|
name: "getViaPartitionKey()"
|
|
nameWithType: "Message.getViaPartitionKey()"
|
|
summary: "Gets the partition key for sending a message to a entity via another partitioned transfer entity."
|
|
syntax: "public String getViaPartitionKey()"
|
|
desc: "Gets the partition key for sending a message to a entity via another partitioned transfer entity. If a message is sent via a transfer queue in the scope of a transaction, this value selects the transfer queue partition: This is functionally equivalent to <xref uid=\"com.microsoft.azure.servicebus.Message.getPartitionKey()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#getPartitionKey()\"></xref> and ensures that messages are kept together and in order as they are transferred."
|
|
returns:
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.microsoft.azure.servicebus.Message.setBody(byte[])"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setBody(byte[] body)"
|
|
name: "setBody(byte[] body)"
|
|
nameWithType: "Message.setBody(byte[] body)"
|
|
summary: "Sets the body of this message as a byte array."
|
|
parameters:
|
|
- name: "body"
|
|
type: "<xref href=\"byte?alt=byte&text=byte\" data-throw-if-not-resolved=\"False\" />[]"
|
|
syntax: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html\">@Deprecated</a></br>public void setBody(byte[] body)"
|
|
desc: "Sets the body of this message as a byte array."
|
|
- uid: "com.microsoft.azure.servicebus.Message.setContentType(java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setContentType(String contentType)"
|
|
name: "setContentType(String contentType)"
|
|
nameWithType: "Message.setContentType(String contentType)"
|
|
summary: "Sets the content type of this message."
|
|
parameters:
|
|
- name: "contentType"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public void setContentType(String contentType)"
|
|
desc: "Sets the content type of this message."
|
|
- uid: "com.microsoft.azure.servicebus.Message.setCorrelationId(java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setCorrelationId(String correlationId)"
|
|
name: "setCorrelationId(String correlationId)"
|
|
nameWithType: "Message.setCorrelationId(String correlationId)"
|
|
summary: "Sets a correlation identifier."
|
|
parameters:
|
|
- name: "correlationId"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public void setCorrelationId(String correlationId)"
|
|
desc: "Sets a correlation identifier."
|
|
- uid: "com.microsoft.azure.servicebus.Message.setLabel(java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setLabel(String label)"
|
|
name: "setLabel(String label)"
|
|
nameWithType: "Message.setLabel(String label)"
|
|
summary: "Sets an application specific message label."
|
|
parameters:
|
|
- name: "label"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public void setLabel(String label)"
|
|
desc: "Sets an application specific message label."
|
|
- uid: "com.microsoft.azure.servicebus.Message.setLockedUntilUtc(java.time.Instant)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setLockedUntilUtc(Instant lockedUntilUtc)"
|
|
name: "setLockedUntilUtc(Instant lockedUntilUtc)"
|
|
nameWithType: "Message.setLockedUntilUtc(Instant lockedUntilUtc)"
|
|
parameters:
|
|
- name: "lockedUntilUtc"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html\">Instant</a>"
|
|
syntax: "public void setLockedUntilUtc(Instant lockedUntilUtc)"
|
|
- uid: "com.microsoft.azure.servicebus.Message.setMessageBody(com.microsoft.azure.servicebus.MessageBody)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setMessageBody(MessageBody body)"
|
|
name: "setMessageBody(MessageBody body)"
|
|
nameWithType: "Message.setMessageBody(MessageBody body)"
|
|
summary: "Sets the body of this message."
|
|
parameters:
|
|
- name: "body"
|
|
type: "<xref href=\"com.microsoft.azure.servicebus.MessageBody?alt=com.microsoft.azure.servicebus.MessageBody&text=MessageBody\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public void setMessageBody(MessageBody body)"
|
|
desc: "Sets the body of this message."
|
|
- uid: "com.microsoft.azure.servicebus.Message.setMessageId(java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setMessageId(String messageId)"
|
|
name: "setMessageId(String messageId)"
|
|
nameWithType: "Message.setMessageId(String messageId)"
|
|
summary: "Sets the Id of this message."
|
|
parameters:
|
|
- name: "messageId"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public void setMessageId(String messageId)"
|
|
desc: "Sets the Id of this message."
|
|
- uid: "com.microsoft.azure.servicebus.Message.setPartitionKey(java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setPartitionKey(String partitionKey)"
|
|
name: "setPartitionKey(String partitionKey)"
|
|
nameWithType: "Message.setPartitionKey(String partitionKey)"
|
|
summary: "Sets a partition key for sending a message to a partitioned entity"
|
|
parameters:
|
|
- name: "partitionKey"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public void setPartitionKey(String partitionKey)"
|
|
desc: "Sets a partition key for sending a message to a partitioned entity"
|
|
- uid: "com.microsoft.azure.servicebus.Message.setProperties(java.util.Map<java.lang.String,java.lang.Object>)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setProperties(Map<String,Object> properties)"
|
|
name: "setProperties(Map<String,Object> properties)"
|
|
nameWithType: "Message.setProperties(Map<String,Object> properties)"
|
|
summary: "Sets the map of user application properties of this message."
|
|
parameters:
|
|
- name: "properties"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/Map.html\">Map</a><<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>,<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>>"
|
|
syntax: "public void setProperties(Map<String,Object> properties)"
|
|
desc: "Sets the map of user application properties of this message. Client applications can set user properties on the message using this map."
|
|
- uid: "com.microsoft.azure.servicebus.Message.setReplyTo(java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setReplyTo(String replyTo)"
|
|
name: "setReplyTo(String replyTo)"
|
|
nameWithType: "Message.setReplyTo(String replyTo)"
|
|
summary: "Sets the address of an entity to send replies to."
|
|
parameters:
|
|
- name: "replyTo"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public void setReplyTo(String replyTo)"
|
|
desc: "Sets the address of an entity to send replies to."
|
|
- uid: "com.microsoft.azure.servicebus.Message.setReplyToSessionId(java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setReplyToSessionId(String replyToSessionId)"
|
|
name: "setReplyToSessionId(String replyToSessionId)"
|
|
nameWithType: "Message.setReplyToSessionId(String replyToSessionId)"
|
|
summary: "Gets or sets a session identifier augmenting the <xref uid=\"com.microsoft.azure.servicebus.Message.getReplyTo()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ReplyTo\"></xref> address."
|
|
parameters:
|
|
- name: "replyToSessionId"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public void setReplyToSessionId(String replyToSessionId)"
|
|
desc: "Gets or sets a session identifier augmenting the <xref uid=\"com.microsoft.azure.servicebus.Message.getReplyTo()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ReplyTo\"></xref> address."
|
|
- uid: "com.microsoft.azure.servicebus.Message.setScheduledEnqueueTimeUtc(java.time.Instant)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setScheduledEnqueueTimeUtc(Instant scheduledEnqueueTimeUtc)"
|
|
name: "setScheduledEnqueueTimeUtc(Instant scheduledEnqueueTimeUtc)"
|
|
nameWithType: "Message.setScheduledEnqueueTimeUtc(Instant scheduledEnqueueTimeUtc)"
|
|
summary: "Sets the scheduled enqueue time of this message."
|
|
parameters:
|
|
- name: "scheduledEnqueueTimeUtc"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html\">Instant</a>"
|
|
syntax: "public void setScheduledEnqueueTimeUtc(Instant scheduledEnqueueTimeUtc)"
|
|
desc: "Sets the scheduled enqueue time of this message."
|
|
- uid: "com.microsoft.azure.servicebus.Message.setScheduledEnqueuedTimeUtc(java.time.Instant)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setScheduledEnqueuedTimeUtc(Instant scheduledEnqueueTimeUtc)"
|
|
name: "setScheduledEnqueuedTimeUtc(Instant scheduledEnqueueTimeUtc)"
|
|
nameWithType: "Message.setScheduledEnqueuedTimeUtc(Instant scheduledEnqueueTimeUtc)"
|
|
summary: "Sets the scheduled enqueue time of this message."
|
|
parameters:
|
|
- name: "scheduledEnqueueTimeUtc"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html\">Instant</a>"
|
|
syntax: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html\">@Deprecated</a></br>public void setScheduledEnqueuedTimeUtc(Instant scheduledEnqueueTimeUtc)"
|
|
desc: "Sets the scheduled enqueue time of this message."
|
|
- uid: "com.microsoft.azure.servicebus.Message.setSessionId(java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setSessionId(String sessionId)"
|
|
name: "setSessionId(String sessionId)"
|
|
nameWithType: "Message.setSessionId(String sessionId)"
|
|
summary: "Sets the session identifier for a session-aware entity."
|
|
parameters:
|
|
- name: "sessionId"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public void setSessionId(String sessionId)"
|
|
desc: "Sets the session identifier for a session-aware entity."
|
|
- uid: "com.microsoft.azure.servicebus.Message.setTimeToLive(java.time.Duration)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setTimeToLive(Duration timeToLive)"
|
|
name: "setTimeToLive(Duration timeToLive)"
|
|
nameWithType: "Message.setTimeToLive(Duration timeToLive)"
|
|
summary: "Sets the duration of time before this message expires."
|
|
parameters:
|
|
- name: "timeToLive"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
|
|
syntax: "public void setTimeToLive(Duration timeToLive)"
|
|
desc: "Sets the duration of time before this message expires."
|
|
- uid: "com.microsoft.azure.servicebus.Message.setTo(java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setTo(String to)"
|
|
name: "setTo(String to)"
|
|
nameWithType: "Message.setTo(String to)"
|
|
summary: "Sets the \"to\" address."
|
|
parameters:
|
|
- name: "to"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public void setTo(String to)"
|
|
desc: "Sets the \"to\" address. This property is reserved for future use in routing scenarios and presently ignored by the broker itself. Applications can use this value in rule-driven [auto-forward chaining][] scenarios to indicate the intended logical destination of the message.\n\n\n[auto-forward chaining]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding"
|
|
- uid: "com.microsoft.azure.servicebus.Message.setViaPartitionKey(java.lang.String)"
|
|
fullName: "com.microsoft.azure.servicebus.Message.setViaPartitionKey(String partitionKey)"
|
|
name: "setViaPartitionKey(String partitionKey)"
|
|
nameWithType: "Message.setViaPartitionKey(String partitionKey)"
|
|
summary: "Sets a via-partition key for sending a message to a destination entity via another partitioned entity"
|
|
parameters:
|
|
- name: "partitionKey"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public void setViaPartitionKey(String partitionKey)"
|
|
desc: "Sets a via-partition key for sending a message to a destination entity via another partitioned entity"
|
|
type: "class"
|
|
implements:
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html\">Serializable</a>"
|
|
- "<xref href=\"com.microsoft.azure.servicebus.IMessage?alt=com.microsoft.azure.servicebus.IMessage&text=IMessage\" data-throw-if-not-resolved=\"False\" />"
|
|
metadata: {}
|
|
package: "com.microsoft.azure.servicebus"
|
|
artifact: com.microsoft.azure:azure-servicebus:3.6.7
|