TcpRetryPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. appcontainers. models. TcpRetryPolicy
- com.
Implements
public final class TcpRetryPolicy
implements JsonSerializable<TcpRetryPolicy>
Policy that defines tcp request retry conditions.
Constructor Summary
| Constructor | Description |
|---|---|
| TcpRetryPolicy() |
Creates an instance of Tcp |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Tcp |
fromJson(JsonReader jsonReader)
Reads an instance of Tcp |
| Integer |
maxConnectAttempts()
Get the max |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Tcp |
withMaxConnectAttempts(Integer maxConnectAttempts)
Set the max |
Methods inherited from java.lang.Object
Constructor Details
TcpRetryPolicy
public TcpRetryPolicy()
Creates an instance of TcpRetryPolicy class.
Method Details
fromJson
public static TcpRetryPolicy fromJson(JsonReader jsonReader)
Reads an instance of TcpRetryPolicy from the JsonReader.
Parameters:
Returns:
Throws:
maxConnectAttempts
public Integer maxConnectAttempts()
Get the maxConnectAttempts property: Maximum number of attempts to connect to the tcp service.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMaxConnectAttempts
public TcpRetryPolicy withMaxConnectAttempts(Integer maxConnectAttempts)
Set the maxConnectAttempts property: Maximum number of attempts to connect to the tcp service.
Parameters:
Returns: