Method | Description | |
---|---|---|
CapacityManager ( int throttleRetryCount, int throttleRetryCost, int throttleCost ) : System | ||
Dispose ( ) : void | ||
GetRetryCapacity ( string serviceURL ) : |
Ths method fetches the RetryCapacity for the given ServiceURL from CapacityManager.CapacityContainer
|
|
TryAcquireCapacity ( |
This method acquires a said retry capacity if the container has the capacity.
|
|
TryReleaseCapacity ( bool isRetryRequest, |
This method calls a method to release capacity back based on whether it was a successful response or a successful retry response. This is invoked by a retry request response.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Method | Description | |
---|---|---|
AddNewRetryCapacity ( string serviceURL ) : |
||
ReleaseCapacity ( int capacity, |
This method releases capacity back. This is invoked by the TryReleaseCapacity method.
|
|
TryGetRetryCapacity ( string key, |
public CapacityManager ( int throttleRetryCount, int throttleRetryCost, int throttleCost ) : System | ||
throttleRetryCount | int | |
throttleRetryCost | int | |
throttleCost | int | |
return | System |
public GetRetryCapacity ( string serviceURL ) : |
||
serviceURL | string | |
return |
public TryAcquireCapacity ( |
||
retryCapacity | Contains the RetryCapacity object for the said ServiceURL. | |
return | bool |
public TryReleaseCapacity ( bool isRetryRequest, |
||
isRetryRequest | bool | |
retryCapacity | Contains the RetryCapacity object for the said ServiceURL. | |
return | void |