public final class StreamingAck extends Object implements org.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate<org.eclipse.ditto.json.JsonObject,org.eclipse.ditto.json.JsonField>
StreamingType was either subscribed to
(subscribed is true) or unsubscribed from (subscribed is false).org.eclipse.ditto.model.base.json.Jsonifiable.WithFieldSelector, org.eclipse.ditto.model.base.json.Jsonifiable.WithFieldSelectorAndPredicate<T>, org.eclipse.ditto.model.base.json.Jsonifiable.WithPointer<J extends org.eclipse.ditto.json.JsonValue>, org.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate<J extends org.eclipse.ditto.json.JsonValue,T>| Constructor and Description |
|---|
StreamingAck(StreamingType streamingType,
boolean subscribed)
Constructs a new acknowledge for when a subscription in the cluster was added/removed.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static StreamingAck |
fromJson(org.eclipse.ditto.json.JsonObject jsonObject)
Creates a new
StreamingAck message from a JSON object. |
StreamingType |
getStreamingType() |
int |
hashCode() |
boolean |
isSubscribed() |
org.eclipse.ditto.json.JsonObject |
toJson() |
org.eclipse.ditto.json.JsonObject |
toJson(org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion,
Predicate<org.eclipse.ditto.json.JsonField> thePredicate) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic StreamingAck(StreamingType streamingType, boolean subscribed)
streamingType - the StreamingType of this StreamingAck message.subscribed - whether it is acknowledged if a subscription was added (subscribed is true) or
removed (subscribed is false).public StreamingType getStreamingType()
public boolean isSubscribed()
subscribed is true) or removed
(subscribed is false).public static StreamingAck fromJson(org.eclipse.ditto.json.JsonObject jsonObject)
StreamingAck message from a JSON object.jsonObject - the JSON object of which the StreamingAck is to be created.NullPointerException - if any argument is null.org.eclipse.ditto.json.JsonParseException - if the passed in jsonObject was not in the expected
format.@Nonnull public org.eclipse.ditto.json.JsonObject toJson()
toJson in interface org.eclipse.ditto.model.base.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>@Nonnull public org.eclipse.ditto.json.JsonObject toJson(@Nonnull org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion, @Nonnull Predicate<org.eclipse.ditto.json.JsonField> thePredicate)
toJson in interface org.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate<org.eclipse.ditto.json.JsonObject,org.eclipse.ditto.json.JsonField>Copyright © 2017–2018 Eclipse Foundation. All rights reserved.