C# 클래스 MongoDB.Driver.Internal.PingTimeAggregator

Holds the ping times and a rolling calculated average. This class is thread-safe.
파일 보기 프로젝트 열기: CloudMetal/mongo-csharp-driver 1 사용 예제들

공개 메소드들

메소드 설명
Clear ( ) : void

Clears this instance.

Include ( System.TimeSpan pingTime ) : void

Includes the specified ping time in the calculation. If there are more times in the bucket than the maxCount, then the oldest one is replaced.

PingTimeAggregator ( int maxCount ) : System

Initializes a new instance of the PingTimeAggregator class.

메소드 상세

Clear() 공개 메소드

Clears this instance.
public Clear ( ) : void
리턴 void

Include() 공개 메소드

Includes the specified ping time in the calculation. If there are more times in the bucket than the maxCount, then the oldest one is replaced.
public Include ( System.TimeSpan pingTime ) : void
pingTime System.TimeSpan The ping time.
리턴 void

PingTimeAggregator() 공개 메소드

Initializes a new instance of the PingTimeAggregator class.
public PingTimeAggregator ( int maxCount ) : System
maxCount int The max count.
리턴 System