Freigeben über


HttpConnectionPool Class

  • java.lang.Object
    • com.azure.resourcemanager.appcontainers.models.HttpConnectionPool

Implements

public final class HttpConnectionPool
implements JsonSerializable<HttpConnectionPool>

Defines parameters for http connection pooling.

Constructor Summary

Constructor Description
HttpConnectionPool()

Creates an instance of HttpConnectionPool class.

Method Summary

Modifier and Type Method and Description
static HttpConnectionPool fromJson(JsonReader jsonReader)

Reads an instance of HttpConnectionPool from the JsonReader.

Integer http1MaxPendingRequests()

Get the http1MaxPendingRequests property: Maximum number of pending http1 requests allowed.

Integer http2MaxRequests()

Get the http2MaxRequests property: Maximum number of http2 requests allowed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

HttpConnectionPool withHttp1MaxPendingRequests(Integer http1MaxPendingRequests)

Set the http1MaxPendingRequests property: Maximum number of pending http1 requests allowed.

HttpConnectionPool withHttp2MaxRequests(Integer http2MaxRequests)

Set the http2MaxRequests property: Maximum number of http2 requests allowed.

Methods inherited from java.lang.Object

Constructor Details

HttpConnectionPool

public HttpConnectionPool()

Creates an instance of HttpConnectionPool class.

Method Details

fromJson

public static HttpConnectionPool fromJson(JsonReader jsonReader)

Reads an instance of HttpConnectionPool from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

http1MaxPendingRequests

public Integer http1MaxPendingRequests()

Get the http1MaxPendingRequests property: Maximum number of pending http1 requests allowed.

Returns:

the http1MaxPendingRequests value.

http2MaxRequests

public Integer http2MaxRequests()

Get the http2MaxRequests property: Maximum number of http2 requests allowed.

Returns:

the http2MaxRequests value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHttp1MaxPendingRequests

public HttpConnectionPool withHttp1MaxPendingRequests(Integer http1MaxPendingRequests)

Set the http1MaxPendingRequests property: Maximum number of pending http1 requests allowed.

Parameters:

http1MaxPendingRequests - the http1MaxPendingRequests value to set.

Returns:

the HttpConnectionPool object itself.

withHttp2MaxRequests

public HttpConnectionPool withHttp2MaxRequests(Integer http2MaxRequests)

Set the http2MaxRequests property: Maximum number of http2 requests allowed.

Parameters:

http2MaxRequests - the http2MaxRequests value to set.

Returns:

the HttpConnectionPool object itself.

Applies to