-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTT5: support multiple Subscription ID properties #10734
Conversation
Can one of the admins verify this patch? |
Also, now I think that introducing |
@netty-bot test this please @paul-lysak thats right we can not break the API anymore... This ship has sailed :/ |
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java
Outdated
Show resolved
Hide resolved
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java
Outdated
Show resolved
Hide resolved
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java
Outdated
Show resolved
Hide resolved
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java
Outdated
Show resolved
Hide resolved
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java
Outdated
Show resolved
Hide resolved
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java
Outdated
Show resolved
Hide resolved
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java
Outdated
Show resolved
Hide resolved
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java
Outdated
Show resolved
Hide resolved
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java
Outdated
Show resolved
Hide resolved
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java
Outdated
Show resolved
Hide resolved
@netty-bot test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small nits, but looks fine.
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java
Outdated
Show resolved
Hide resolved
codec-mqtt/src/test/java/io/netty/handler/codec/mqtt/MqttPropertiesTest.java
Outdated
Show resolved
Hide resolved
codec-mqtt/src/test/java/io/netty/handler/codec/mqtt/MqttPropertiesTest.java
Outdated
Show resolved
Hide resolved
@netty-bot test this please |
Motivation: Subscription ID property of the PUBLISH message may be repeated multiple times, which wasn't taken into account when developing `MqttProperties` API. Modification: Store Subscription ID properties separately from others - in `MqttProperties.subscriptionIds`. Add `MqttProperties.getProperties` method to retrieve properties that may be repeated. Change internal representation of User Properties for uniformity with Subscription ID - now they're stored in `MqttProperties.userProperties` rather than the common hash map. Result: Multiple Subscription ID properties can be set or retrieved.
Motivation: Subscription ID property of the PUBLISH message may be repeated multiple times, which wasn't taken into account when developing `MqttProperties` API. Modification: Store Subscription ID properties separately from others - in `MqttProperties.subscriptionIds`. Add `MqttProperties.getProperties` method to retrieve properties that may be repeated. Change internal representation of User Properties for uniformity with Subscription ID - now they're stored in `MqttProperties.userProperties` rather than the common hash map. Result: Multiple Subscription ID properties can be set or retrieved.
Motivation:
Subscription ID property of the PUBLISH message may be repeated multiple times, which wasn't taken into account when developing
MqttProperties
API.Modification:
Store Subscription ID properties separately from others - in
MqttProperties.subscriptionIds
.Add
MqttProperties.getProperties
method to retrieve properties that may be repeated.Change internal representation of User Properties for uniformity with Subscription ID - now they're stored in
MqttProperties.userProperties
rather than the common hash map.Result:
Multiple Subscription ID properties can be set or retrieved.