Interface ThingConnectivity.Builder

  • Method Details

    • connected

      ThingConnectivity.Builder connected(Boolean connected)

      True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.

      Parameters:
      connected - True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timestamp

      ThingConnectivity.Builder timestamp(Long timestamp)

      The epoch time (in milliseconds) when the thing last connected or disconnected.

      Parameters:
      timestamp - The epoch time (in milliseconds) when the thing last connected or disconnected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • disconnectReason

      ThingConnectivity.Builder disconnectReason(String disconnectReason)

      The reason that the client is disconnected.

      Parameters:
      disconnectReason - The reason that the client is disconnected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keepAliveDuration

      ThingConnectivity.Builder keepAliveDuration(Integer keepAliveDuration)

      The keep-alive interval in seconds that the client specified when establishing the connection.

      Parameters:
      keepAliveDuration - The keep-alive interval in seconds that the client specified when establishing the connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cleanSession

      ThingConnectivity.Builder cleanSession(Boolean cleanSession)

      Indicates whether the client is using a clean session. Returns true for clean sessions.

      Parameters:
      cleanSession - Indicates whether the client is using a clean session. Returns true for clean sessions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionExpiry

      ThingConnectivity.Builder sessionExpiry(Long sessionExpiry)

      The session expiry interval in seconds for the MQTT client connection. This value indicates how long the session will remain active after the client disconnects.

      Parameters:
      sessionExpiry - The session expiry interval in seconds for the MQTT client connection. This value indicates how long the session will remain active after the client disconnects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientId

      ThingConnectivity.Builder clientId(String clientId)

      The unique identifier of the MQTT client.

      Parameters:
      clientId - The unique identifier of the MQTT client.
      Returns:
      Returns a reference to this object so that method calls can be chained together.