C# 클래스 Elders.Hystrix.NET.Util.HystrixRollingNumber.Bucket

Counters for a given 'bucket' of time.
파일 보기 프로젝트 열기: Elders/Hystrix.NET

공개 메소드들

메소드 설명
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