AerospikeClientSetQuotas Method

Aerospike
Set maximum reads/writes per second limits for a role. If a quota is zero, the limit is removed. Quotas require server security configuration "enable-quotas" to be set to true.

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public void SetQuotas(
	AdminPolicy policy,
	string roleName,
	int readQuota,
	int writeQuota
)

Parameters

policy
Type: Aerospike.ClientAdminPolicy
admin configuration parameters, pass in null for defaults
roleName
Type: SystemString
role name
readQuota
Type: SystemInt32
maximum reads per second limit, pass in zero for no limit.
writeQuota
Type: SystemInt32
maximum writes per second limit, pass in zero for no limit.

Implements

IAerospikeClientSetQuotas(AdminPolicy, String, Int32, Int32)
Exceptions

ExceptionCondition
AerospikeExceptionif command fails
See Also

Reference