你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
GlobalThroughputControlConfigBuilder Class
- java.
lang. Object - com.
azure. cosmos. GlobalThroughputControlConfigBuilder
- com.
public class GlobalThroughputControlConfigBuilder
Throughput global control config builder.
Method Summary
Modifier and Type | Method and Description |
---|---|
Global |
build()
Validate the throughput global control configuration and create a new throughput global control config item. |
Global |
setControlItemExpireInterval(Duration controlItemExpireInterval)
Set the control item expire interval. |
Global |
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:
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:
Returns: