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 AzureHeaders
BATCH_CONVERTED_PARTITION_KEY, CHECKPOINTER, MESSAGE_SESSION, NAME, PARTITION_ID, RAW_PARTITION_ID, SCHEDULED_ENQUEUE_MESSAGE -
Method Summary
-
Field Details
-
CORRELATION_ID
-
MESSAGE_ID
-
PARTITION_KEY
-
TO
-
TIME_TO_LIVE
-
SCHEDULED_ENQUEUE_TIME
-
REPLY_TO_SESSION_ID
-
SESSION_ID
-
RECEIVED_MESSAGE_CONTEXT
-
DEAD_LETTER_ERROR_DESCRIPTION
-
DEAD_LETTER_REASON
-
DEAD_LETTER_SOURCE
-
DELIVERY_COUNT
-
ENQUEUED_SEQUENCE_NUMBER
-
ENQUEUED_TIME
-
EXPIRES_AT
-
LOCK_TOKEN
-
LOCKED_UNTIL
-
SEQUENCE_NUMBER
-
STATE
-
SUBJECT
-