eclipse-paho / eclipse-paho/paho.mqtt.java

Documentation not clear about MqttSubscription.retainHandling

Open
#971 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

Please fill out the form below before submitting, thank you!

- [ ] Bug exists Release Version 1.2.5 ( Master Branch)
- [ ] Bug exists in MQTTv3 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
- [X] Bug exists in MQTTv5 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)

The javadoc of the method validateRetainHandling seems a copy of the method validateQos.

I'm trying to find what the values for MqttSubscription.retainHandling means.

My goal is not to process retained messages on subscription. Since retainHandling defaults to 0 I'm guessing 0 means to handle the retained message. What does 1 and 2 means?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.