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
Modifier and TypeFieldDescriptionstatic final String
Correlation ID.static final String
Dead letter error description.static final String
Dead letter reason.static final String
Dead letter source.static final String
Delivery count.static final String
Enqueued sequence number.static final String
Enqueued time.static final String
Expires at.static final String
Lock token.static final String
Locked until.static final String
Message ID.static final String
Partition key.static final String
Received message context.static final String
Reply to session ID.static final String
Scheduled enqueue time.static final String
Sequence number.static final String
Session ID.static final String
State.static final String
Subject.static final String
Time to live.static final String
To.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:
-