C# Class Elders.Hystrix.NET.Util.LongMaxUpdater

This class is currently uses AtomicLong to calculate the maximum of a series of number. The original implementation derive from Striped64 to implement a counter with better throughput under high contention.
Afficher le fichier Open project: Elders/Hystrix.NET

Méthodes publiques

Méthode Description
Max ( ) : long

Gets the maximum.

MaxThenReset ( ) : long

Gets the maximum and sets it to 0.

Reset ( ) : void

Sets the maximum to 0.

ToString ( ) : string

Gets the string representation of the maximum.

Update ( long x ) : void

Updates the maximum if the specified number is greater than the maximum.

Method Details

Max() public méthode

Gets the maximum.
public Max ( ) : long
Résultat long

MaxThenReset() public méthode

Gets the maximum and sets it to 0.
public MaxThenReset ( ) : long
Résultat long

Reset() public méthode

Sets the maximum to 0.
public Reset ( ) : void
Résultat void

ToString() public méthode

Gets the string representation of the maximum.
public ToString ( ) : string
Résultat string

Update() public méthode

Updates the maximum if the specified number is greater than the maximum.
public Update ( long x ) : void
x long The number to update with.
Résultat void