Freigeben über


AppResiliencyProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.appcontainers.fluent.models.AppResiliencyProperties

Implements

public final class AppResiliencyProperties
implements JsonSerializable<AppResiliencyProperties>

App Resiliency resource specific properties.

Constructor Summary

Constructor Description
AppResiliencyProperties()

Creates an instance of AppResiliencyProperties class.

Method Summary

Modifier and Type Method and Description
CircuitBreakerPolicy circuitBreakerPolicy()

Get the circuitBreakerPolicy property: Policy that defines circuit breaker conditions.

static AppResiliencyProperties fromJson(JsonReader jsonReader)

Reads an instance of AppResiliencyProperties from the JsonReader.

HttpConnectionPool httpConnectionPool()

Get the httpConnectionPool property: Defines parameters for http connection pooling.

HttpRetryPolicy httpRetryPolicy()

Get the httpRetryPolicy property: Policy that defines http request retry conditions.

TcpConnectionPool tcpConnectionPool()

Get the tcpConnectionPool property: Defines parameters for tcp connection pooling.

TcpRetryPolicy tcpRetryPolicy()

Get the tcpRetryPolicy property: Policy that defines tcp request retry conditions.

TimeoutPolicy timeoutPolicy()

Get the timeoutPolicy property: Policy to set request timeouts.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AppResiliencyProperties withCircuitBreakerPolicy(CircuitBreakerPolicy circuitBreakerPolicy)

Set the circuitBreakerPolicy property: Policy that defines circuit breaker conditions.

AppResiliencyProperties withHttpConnectionPool(HttpConnectionPool httpConnectionPool)

Set the httpConnectionPool property: Defines parameters for http connection pooling.

AppResiliencyProperties withHttpRetryPolicy(HttpRetryPolicy httpRetryPolicy)

Set the httpRetryPolicy property: Policy that defines http request retry conditions.

AppResiliencyProperties withTcpConnectionPool(TcpConnectionPool tcpConnectionPool)

Set the tcpConnectionPool property: Defines parameters for tcp connection pooling.

AppResiliencyProperties withTcpRetryPolicy(TcpRetryPolicy tcpRetryPolicy)

Set the tcpRetryPolicy property: Policy that defines tcp request retry conditions.

AppResiliencyProperties withTimeoutPolicy(TimeoutPolicy timeoutPolicy)

Set the timeoutPolicy property: Policy to set request timeouts.

Methods inherited from java.lang.Object

Constructor Details

AppResiliencyProperties

public AppResiliencyProperties()

Creates an instance of AppResiliencyProperties class.

Method Details

circuitBreakerPolicy

public CircuitBreakerPolicy circuitBreakerPolicy()

Get the circuitBreakerPolicy property: Policy that defines circuit breaker conditions.

Returns:

the circuitBreakerPolicy value.

fromJson

public static AppResiliencyProperties fromJson(JsonReader jsonReader)

Reads an instance of AppResiliencyProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AppResiliencyProperties 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 AppResiliencyProperties.

httpConnectionPool

public HttpConnectionPool httpConnectionPool()

Get the httpConnectionPool property: Defines parameters for http connection pooling.

Returns:

the httpConnectionPool value.

httpRetryPolicy

public HttpRetryPolicy httpRetryPolicy()

Get the httpRetryPolicy property: Policy that defines http request retry conditions.

Returns:

the httpRetryPolicy value.

tcpConnectionPool

public TcpConnectionPool tcpConnectionPool()

Get the tcpConnectionPool property: Defines parameters for tcp connection pooling.

Returns:

the tcpConnectionPool value.

tcpRetryPolicy

public TcpRetryPolicy tcpRetryPolicy()

Get the tcpRetryPolicy property: Policy that defines tcp request retry conditions.

Returns:

the tcpRetryPolicy value.

timeoutPolicy

public TimeoutPolicy timeoutPolicy()

Get the timeoutPolicy property: Policy to set request timeouts.

Returns:

the timeoutPolicy value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCircuitBreakerPolicy

public AppResiliencyProperties withCircuitBreakerPolicy(CircuitBreakerPolicy circuitBreakerPolicy)

Set the circuitBreakerPolicy property: Policy that defines circuit breaker conditions.

Parameters:

circuitBreakerPolicy - the circuitBreakerPolicy value to set.

Returns:

the AppResiliencyProperties object itself.

withHttpConnectionPool

public AppResiliencyProperties withHttpConnectionPool(HttpConnectionPool httpConnectionPool)

Set the httpConnectionPool property: Defines parameters for http connection pooling.

Parameters:

httpConnectionPool - the httpConnectionPool value to set.

Returns:

the AppResiliencyProperties object itself.

withHttpRetryPolicy

public AppResiliencyProperties withHttpRetryPolicy(HttpRetryPolicy httpRetryPolicy)

Set the httpRetryPolicy property: Policy that defines http request retry conditions.

Parameters:

httpRetryPolicy - the httpRetryPolicy value to set.

Returns:

the AppResiliencyProperties object itself.

withTcpConnectionPool

public AppResiliencyProperties withTcpConnectionPool(TcpConnectionPool tcpConnectionPool)

Set the tcpConnectionPool property: Defines parameters for tcp connection pooling.

Parameters:

tcpConnectionPool - the tcpConnectionPool value to set.

Returns:

the AppResiliencyProperties object itself.

withTcpRetryPolicy

public AppResiliencyProperties withTcpRetryPolicy(TcpRetryPolicy tcpRetryPolicy)

Set the tcpRetryPolicy property: Policy that defines tcp request retry conditions.

Parameters:

tcpRetryPolicy - the tcpRetryPolicy value to set.

Returns:

the AppResiliencyProperties object itself.

withTimeoutPolicy

public AppResiliencyProperties withTimeoutPolicy(TimeoutPolicy timeoutPolicy)

Set the timeoutPolicy property: Policy to set request timeouts.

Parameters:

timeoutPolicy - the timeoutPolicy value to set.

Returns:

the AppResiliencyProperties object itself.

Applies to