-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9140bae
commit abd23ca
Showing
1 changed file
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
package cool.mqtt.hooks; | ||
|
||
/** | ||
* An abstraction of the <code>SUBSCRIBE</code> Control Packet, sent by the | ||
* client and passed to the Hook, before being encoded and finally submitted to | ||
* the target MQTT broker. | ||
* An abstraction of the <code>SUBSCRIBE</code> Control Packet, sent by the client and passed to the | ||
* Hook, before being encoded and finally submitted to the target MQTT broker. | ||
*/ | ||
public interface MqttSubscription { | ||
|
||
/** | ||
* Gets the topic filter indicating one or more topics to which the client | ||
* subscribe. | ||
* Gets the topic filter indicating one or more topics to which the client subscribe. | ||
* | ||
* @return the topic filter | ||
*/ | ||
String getTopicFilter(); | ||
|
||
/** | ||
* Gets the maximum Quality Of Service level which the target MQTT broker is | ||
* allowed to send Application Messages. | ||
* Gets the maximum Quality Of Service level which the target MQTT broker is allowed to send | ||
* Application Messages. | ||
* | ||
* @return the maximum Quality Of Service level | ||
*/ | ||
QoS getQos(); | ||
|
||
} | ||
} |