你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

GlobalThroughputControlConfigBuilder Class

  • java.lang.Object
    • com.azure.cosmos.GlobalThroughputControlConfigBuilder

public class GlobalThroughputControlConfigBuilder

Throughput global control config builder.

Method Summary

Modifier and Type Method and Description
GlobalThroughputControlConfig build()

Validate the throughput global control configuration and create a new throughput global control config item.

GlobalThroughputControlConfigBuilder setControlItemExpireInterval(Duration controlItemExpireInterval)

Set the control item expire interval.

GlobalThroughputControlConfigBuilder setControlItemRenewInterval(Duration controlItemRenewInterval)

Set the control item renew interval.

Methods inherited from java.lang.Object

Method Details

build

public GlobalThroughputControlConfig build()

Validate the throughput global control configuration and create a new throughput global control config item.

Returns:

setControlItemExpireInterval

public GlobalThroughputControlConfigBuilder setControlItemExpireInterval(Duration controlItemExpireInterval)

Set the control item expire interval. A client may be offline due to various reasons (being shutdown, network issue... ). This controls how quickly we will detect the client has been offline and hence allow its throughput share to be taken by other clients.

Parameters:

controlItemExpireInterval - The control item expire interval.

Returns:

setControlItemRenewInterval

public GlobalThroughputControlConfigBuilder setControlItemRenewInterval(Duration controlItemRenewInterval)

Set the control item renew interval. This controls how often the client is going to update the throughput usage of itself and adjust its own throughput share based on the throughput usage of other clients. In short words, it controls how quickly the shared throughput will reload balanced across different clients.

Parameters:

controlItemRenewInterval - The control item renewal interval.

Returns:

Applies to