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.
Mostrar archivo Open project: Elders/Hystrix.NET

Public Methods

Method 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 method

Gets the maximum.
public Max ( ) : long
return long

MaxThenReset() public method

Gets the maximum and sets it to 0.
public MaxThenReset ( ) : long
return long

Reset() public method

Sets the maximum to 0.
public Reset ( ) : void
return void

ToString() public method

Gets the string representation of the maximum.
public ToString ( ) : string
return string

Update() public method

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