Click or drag to resize
ConnectionThrottles Constructor
This API is preliminary and subject to change.
Initializes a new instance of the ConnectionThrottles class with the specified configuration.

Namespace: net.openstack.Providers.Rackspace.Objects.LoadBalancers
Assembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax
public ConnectionThrottles(
	Nullable<int> maxConnectionRate,
	Nullable<int> maxConnections,
	Nullable<int> minConnections,
	Nullable<TimeSpan> rateInterval
)

Parameters

maxConnectionRate
Type: SystemNullableInt32
The maximum number of connections per rate interval to allow from a single IP address, or 0 to not limit the connection rate. If this value is , the value for this throttle will not be changed during a call to UpdateThrottlesAsync(LoadBalancerId, ConnectionThrottles, AsyncCompletionOption, CancellationToken, IProgressLoadBalancer).
maxConnections
Type: SystemNullableInt32
The maximum number of connections to allow from a single IP address, or 0 to not limit the number connections. If this value is , the value for this throttle will not be changed during a call to UpdateThrottlesAsync(LoadBalancerId, ConnectionThrottles, AsyncCompletionOption, CancellationToken, IProgressLoadBalancer).
minConnections
Type: SystemNullableInt32
The minimum number of connections to allow from an IP address before applying throttling restrictions. If this value is , the value for this throttle will not be changed during a call to UpdateThrottlesAsync(LoadBalancerId, ConnectionThrottles, AsyncCompletionOption, CancellationToken, IProgressLoadBalancer).
rateInterval
Type: SystemNullableTimeSpan
The time period for which the connection rate limit is evaluated. If this value is , the value for this throttle will not be changed during a call to UpdateThrottlesAsync(LoadBalancerId, ConnectionThrottles, AsyncCompletionOption, CancellationToken, IProgressLoadBalancer).
Exceptions
ExceptionCondition
ArgumentOutOfRangeException If maxConnectionRate is less than 0.

-or-

If maxConnections is less than 0.

-or-

If minConnections is less than 0.

-or-

If rateInterval is negative or Zero.

Version Information

.NET Framework

Supported in: 4.5

openstack.net

Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also