You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: services/azure-servicebus/src/main/java/com/microsoft/windowsazure/services/servicebus/implementation/BrokerProperties.java
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,12 @@ public class BrokerProperties {
36
36
@JsonProperty("SessionId")
37
37
privateStringsessionId;
38
38
39
+
@JsonProperty("PartitionKey")
40
+
privateStringpartitionKey;
41
+
42
+
@JsonProperty("ViaPartitionKey")
43
+
privateStringviaPartitionKey;
44
+
39
45
@JsonProperty("DeliveryCount")
40
46
privateIntegerdeliveryCount;
41
47
@@ -147,6 +153,24 @@ public void setSessionId(String sessionId) {
Copy file name to clipboardExpand all lines: services/azure-servicebus/src/main/java/com/microsoft/windowsazure/services/servicebus/models/BrokeredMessage.java
+48Lines changed: 48 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -349,6 +349,54 @@ public BrokeredMessage setSessionId(String sessionId) {
349
349
returnthis;
350
350
}
351
351
352
+
/**
353
+
* Returns the partition key for the message.
354
+
*
355
+
* @return A <code>String</code> object that represents the partition key.
356
+
*
357
+
*/
358
+
publicStringgetPartitionKey() {
359
+
returnbrokerProperties.getPartitionKey();
360
+
}
361
+
362
+
/**
363
+
* Sets the partition key for the message.
364
+
*
365
+
* @param partitionKey
366
+
* A <code>String</code> object that represents the partition key.
367
+
*
368
+
* @return A <code>Message</code> object that represents the updated
0 commit comments