Added active flag to Subscription
This commit is contained in:
@@ -16,6 +16,7 @@ public class Subscription implements Serializable {
|
|||||||
String clientId;
|
String clientId;
|
||||||
String topic;
|
String topic;
|
||||||
boolean cleanSession;
|
boolean cleanSession;
|
||||||
|
boolean active = true;
|
||||||
|
|
||||||
public Subscription(String clientId, String topic, QOSType requestedQos, boolean cleanSession) {
|
public Subscription(String clientId, String topic, QOSType requestedQos, boolean cleanSession) {
|
||||||
this.requestedQos = requestedQos;
|
this.requestedQos = requestedQos;
|
||||||
@@ -40,6 +41,14 @@ public class Subscription implements Serializable {
|
|||||||
return this.cleanSession;
|
return this.cleanSession;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isActive() {
|
||||||
|
return active;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActive(boolean active) {
|
||||||
|
this.active = active;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (obj == null) {
|
if (obj == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user