Class ServiceBusMessageHeaders
java.lang.Object
com.azure.spring.messaging.AzureHeaders
com.azure.spring.messaging.servicebus.support.ServiceBusMessageHeaders
Azure service bus message headers.
Usage example:
import org.springframework.integration.support.MessageBuilder;
MessageBuilder.withPayload(payload)
.setHeader(ServiceBusMessageHeaders.MESSAGE_ID, ...)
.build();
There are 16 items can be set for service bus IMessage.
- 2 items are deprecated: ScheduledEnqueuedTimeUtc, Body.
- 3 items should be set by Spring message: ContentType, MessageBody. ReplyTo.
- 1 item should not be set: Properties.
- The rest 10 items can be set by Spring message header: MessageId, TimeToLive, ScheduledEnqueueTimeUtc, SessionId, CorrelationId, To, Label, ReplyToSessionId, PartitionKey, ViaPartitionKey.
- 2 item should be set by Spring message: ContentType, ReplyTo.
- The rest 9 items can be set by Spring message header: CorrelationId, Subject, MessageId, PartitionKey, To, TimeToLive, ScheduledEnqueueTime, ReplyToSessionId, SessionId
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCorrelation ID.static final StringDead letter error description.static final StringDead letter reason.static final StringDead letter source.static final StringDelivery count.static final StringEnqueued sequence number.static final StringEnqueued time.static final StringExpires at.static final StringLock token.static final StringLocked until.static final StringMessage ID.static final StringPartition key.static final StringReceived message context.static final StringReply to session ID.static final StringScheduled enqueue time.static final StringSequence number.static final StringSession ID.static final StringState.static final StringSubject.static final StringTime to live.static final StringTo.Fields inherited from class com.azure.spring.messaging.AzureHeaders
BATCH_CONVERTED_PARTITION_KEY, CHECKPOINTER, MESSAGE_SESSION, NAME, PARTITION_ID, RAW_PARTITION_ID, SCHEDULED_ENQUEUE_MESSAGE -
Method Summary
-
Field Details
-
CORRELATION_ID
Correlation ID.- See Also:
-
MESSAGE_ID
Message ID.- See Also:
-
PARTITION_KEY
Partition key.- See Also:
-
TO
To.- See Also:
-
TIME_TO_LIVE
Time to live.- See Also:
-
SCHEDULED_ENQUEUE_TIME
Scheduled enqueue time.- See Also:
-
REPLY_TO_SESSION_ID
Reply to session ID.- See Also:
-
SESSION_ID
Session ID.- See Also:
-
RECEIVED_MESSAGE_CONTEXT
Received message context.- See Also:
-
DEAD_LETTER_ERROR_DESCRIPTION
Dead letter error description.- See Also:
-
DEAD_LETTER_REASON
Dead letter reason.- See Also:
-
DEAD_LETTER_SOURCE
Dead letter source.- See Also:
-
DELIVERY_COUNT
Delivery count.- See Also:
-
ENQUEUED_SEQUENCE_NUMBER
Enqueued sequence number.- See Also:
-
ENQUEUED_TIME
Enqueued time.- See Also:
-
EXPIRES_AT
Expires at.- See Also:
-
LOCK_TOKEN
Lock token.- See Also:
-
LOCKED_UNTIL
Locked until.- See Also:
-
SEQUENCE_NUMBER
Sequence number.- See Also:
-
STATE
State.- See Also:
-
SUBJECT
Subject.- See Also:
-