Class EventGridMqttClientSessionDisconnectedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.EventGridMqttClientEventData
com.azure.messaging.eventgrid.systemevents.EventGridMqttClientSessionDisconnectedEventData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EventGridMqttClientEventData>
public final class EventGridMqttClientSessionDisconnectedEventData
extends EventGridMqttClientEventData
Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EventGridMqttClientSessionDisconnectedEventData from the JsonReader.Get the clientSessionName property: Unique identifier for the MQTT client's session.Get the disconnectionReason property: Reason for the disconnection of the MQTT client's session.longGet the sequenceNumber property: A number that helps indicate order of MQTT client session connected or disconnected events.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.messaging.eventgrid.systemevents.EventGridMqttClientEventData
getClientAuthenticationName, getClientName, getNamespaceNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getClientSessionName
Get the clientSessionName property: Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters.- Returns:
- the clientSessionName value.
-
getSequenceNumber
public long getSequenceNumber()Get the sequenceNumber property: A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event.- Returns:
- the sequenceNumber value.
-
getDisconnectionReason
Get the disconnectionReason property: Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table.- Returns:
- the disconnectionReason value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EventGridMqttClientEventData>- Overrides:
toJsonin classEventGridMqttClientEventData- Throws:
IOException
-
fromJson
public static EventGridMqttClientSessionDisconnectedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EventGridMqttClientSessionDisconnectedEventData from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EventGridMqttClientSessionDisconnectedEventData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the EventGridMqttClientSessionDisconnectedEventData.
-