ConnectionThrottles Constructor |
This API is preliminary and subject to change.
Namespace: net.openstack.Providers.Rackspace.Objects.LoadBalancersAssembly: 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
)
Public Sub New (
maxConnectionRate As Nullable(Of Integer),
maxConnections As Nullable(Of Integer),
minConnections As Nullable(Of Integer),
rateInterval As Nullable(Of TimeSpan)
)
public:
ConnectionThrottles(
Nullable<int> maxConnectionRate,
Nullable<int> maxConnections,
Nullable<int> minConnections,
Nullable<TimeSpan> rateInterval
)
new :
maxConnectionRate : Nullable<int> *
maxConnections : Nullable<int> *
minConnections : Nullable<int> *
rateInterval : Nullable<TimeSpan> -> ConnectionThrottles
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 Exception | Condition |
---|
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