C# Class Elders.Hystrix.NET.Util.HystrixRollingNumber.CumulativeSum

Cumulative counters (all time) for each HystrixRollingNumberEvent used in HystrixRollingNumber.
Afficher le fichier Open project: Elders/Hystrix.NET

Méthodes publiques

Méthode Description
AddBucket ( Bucket lastBucket ) : void

Updates the cumulative values by the values of a Bucket.

CumulativeSum ( ) : System

Initializes a new instance of the CumulativeSum class.

Get ( HystrixRollingNumberEvent type ) : long

Gets the cumulative value for the specified HystrixRollingNumberEvent. (Returns LongAdder.Sum() for Counter types and LongMaxUpdater.Max() for MaxUpdater types.)

GetAdder ( HystrixRollingNumberEvent type ) : LongAdder

Gets the LongAdder instance for the specified event.

GetMaxUpdater ( HystrixRollingNumberEvent type ) : LongMaxUpdater

Gets the LongMaxUpdater instance for the specified event.

Method Details

AddBucket() public méthode

Updates the cumulative values by the values of a Bucket.
public AddBucket ( Bucket lastBucket ) : void
lastBucket Bucket The bucket to update with.
Résultat void

CumulativeSum() public méthode

Initializes a new instance of the CumulativeSum class.
public CumulativeSum ( ) : System
Résultat System

Get() public méthode

Gets the cumulative value for the specified HystrixRollingNumberEvent. (Returns LongAdder.Sum() for Counter types and LongMaxUpdater.Max() for MaxUpdater types.)
public Get ( HystrixRollingNumberEvent type ) : long
type HystrixRollingNumberEvent The specified event.
Résultat long

GetAdder() public méthode

Gets the LongAdder instance for the specified event.
public GetAdder ( HystrixRollingNumberEvent type ) : LongAdder
type HystrixRollingNumberEvent The specified event.
Résultat LongAdder

GetMaxUpdater() public méthode

Gets the LongMaxUpdater instance for the specified event.
public GetMaxUpdater ( HystrixRollingNumberEvent type ) : LongMaxUpdater
type HystrixRollingNumberEvent The specified event.
Résultat LongMaxUpdater