C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Max() публичный Метод

Gets the maximum.
public Max ( ) : long
Результат long

MaxThenReset() публичный Метод

Gets the maximum and sets it to 0.
public MaxThenReset ( ) : long
Результат long

Reset() публичный Метод

Sets the maximum to 0.
public Reset ( ) : void
Результат void

ToString() публичный Метод

Gets the string representation of the maximum.
public ToString ( ) : string
Результат string

Update() публичный Метод

Updates the maximum if the specified number is greater than the maximum.
public Update ( long x ) : void
x long The number to update with.
Результат void