C# Класс Elders.Hystrix.NET.Util.HystrixRollingNumber.Bucket

Counters for a given 'bucket' of time.
Показать файл Открыть проект

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

Метод Описание
Bucket ( long startTime ) : System

Initializes a new instance of the Bucket class.

Get ( HystrixRollingNumberEvent type ) : long

Gets the value for the specified HystrixRollingNumberEvent in this bucket. (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.

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

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

Initializes a new instance of the Bucket class.
public Bucket ( long startTime ) : System
startTime long The time of start of this bucket.
Результат System

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

Gets the value for the specified HystrixRollingNumberEvent in this bucket. (Returns LongAdder.Sum() for Counter types and LongMaxUpdater.Max() for MaxUpdater types.)
public Get ( HystrixRollingNumberEvent type ) : long
type HystrixRollingNumberEvent The specified event.
Результат long

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

Gets the LongAdder instance for the specified event.
public GetAdder ( HystrixRollingNumberEvent type ) : LongAdder
type HystrixRollingNumberEvent The specified event.
Результат LongAdder

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

Gets the LongMaxUpdater instance for the specified event.
public GetMaxUpdater ( HystrixRollingNumberEvent type ) : LongMaxUpdater
type HystrixRollingNumberEvent The specified event.
Результат LongMaxUpdater