ServerlessSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.signalr.models.ServerlessSettings

Implements

public final class ServerlessSettings
implements JsonSerializable<ServerlessSettings>

Serverless settings.

Constructor Summary

Constructor Description
ServerlessSettings()

Creates an instance of ServerlessSettings class.

Method Summary

Modifier and Type Method and Description
Integer connectionTimeoutInSeconds()

Get the connectionTimeoutInSeconds property: Gets or sets Client Connection Timeout.

static ServerlessSettings fromJson(JsonReader jsonReader)

Reads an instance of ServerlessSettings from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServerlessSettings withConnectionTimeoutInSeconds(Integer connectionTimeoutInSeconds)

Set the connectionTimeoutInSeconds property: Gets or sets Client Connection Timeout.

Methods inherited from java.lang.Object

Constructor Details

ServerlessSettings

public ServerlessSettings()

Creates an instance of ServerlessSettings class.

Method Details

connectionTimeoutInSeconds

public Integer connectionTimeoutInSeconds()

Get the connectionTimeoutInSeconds property: Gets or sets Client Connection Timeout. Optional to be set. Value in seconds. Default value is 30 seconds. Customer should set the timeout to a shorter period if messages are expected to be sent in shorter intervals, and want the client to disconnect more quickly after the last message is sent. You can set the timeout to a longer period if messages are expected to be sent in longer intervals, and they want to keep the same client connection alive during this session. The service considers the client disconnected if it hasn't received a message (including keep-alive) in this interval.

Returns:

the connectionTimeoutInSeconds value.

fromJson

public static ServerlessSettings fromJson(JsonReader jsonReader)

Reads an instance of ServerlessSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServerlessSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ServerlessSettings.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withConnectionTimeoutInSeconds

public ServerlessSettings withConnectionTimeoutInSeconds(Integer connectionTimeoutInSeconds)

Set the connectionTimeoutInSeconds property: Gets or sets Client Connection Timeout. Optional to be set. Value in seconds. Default value is 30 seconds. Customer should set the timeout to a shorter period if messages are expected to be sent in shorter intervals, and want the client to disconnect more quickly after the last message is sent. You can set the timeout to a longer period if messages are expected to be sent in longer intervals, and they want to keep the same client connection alive during this session. The service considers the client disconnected if it hasn't received a message (including keep-alive) in this interval.

Parameters:

connectionTimeoutInSeconds - the connectionTimeoutInSeconds value to set.

Returns:

the ServerlessSettings object itself.

Applies to