Freigeben über


TcpConnectionPool Class

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

Implements

public final class TcpConnectionPool
implements JsonSerializable<TcpConnectionPool>

Defines parameters for tcp connection pooling.

Constructor Summary

Constructor Description
TcpConnectionPool()

Creates an instance of TcpConnectionPool class.

Method Summary

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

Reads an instance of TcpConnectionPool from the JsonReader.

Integer maxConnections()

Get the maxConnections property: Maximum number of tcp connections allowed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TcpConnectionPool withMaxConnections(Integer maxConnections)

Set the maxConnections property: Maximum number of tcp connections allowed.

Methods inherited from java.lang.Object

Constructor Details

TcpConnectionPool

public TcpConnectionPool()

Creates an instance of TcpConnectionPool class.

Method Details

fromJson

public static TcpConnectionPool fromJson(JsonReader jsonReader)

Reads an instance of TcpConnectionPool from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maxConnections

public Integer maxConnections()

Get the maxConnections property: Maximum number of tcp connections allowed.

Returns:

the maxConnections value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMaxConnections

public TcpConnectionPool withMaxConnections(Integer maxConnections)

Set the maxConnections property: Maximum number of tcp connections allowed.

Parameters:

maxConnections - the maxConnections value to set.

Returns:

the TcpConnectionPool object itself.

Applies to