AerospikeClient.SetQuotas Method
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.ClientAssembly: AerospikeClient (in AerospikeClient.dll) Version: 8.0.1+e35566e493546c0887ebb841c8e2a2c6a7cbde18
public void SetQuotas(
AdminPolicy policy,
string roleName,
int readQuota,
int writeQuota
)
- policy AdminPolicy
- admin configuration parameters, pass in null for defaults
- roleName String
- role name
- readQuota Int32
- maximum reads per second limit, pass in zero for no limit.
- writeQuota Int32
- maximum writes per second limit, pass in zero for no limit.
IAerospikeClient.SetQuotas(AdminPolicy, String, Int32, Int32)