C# 클래스 Elders.Hystrix.NET.ThreadPool.HystrixThreadPoolMetrics

Used by IHystrixThreadPool to record metrics. Thread-safe and ensures only 1 HystrixThreadPoolMetrics per HystrixThreadPoolKey.
파일 보기 프로젝트 열기: Elders/Hystrix.NET 1 사용 예제들

공개 메소드들

메소드 설명
GetInstance ( HystrixThreadPoolKey key ) : HystrixThreadPoolMetrics

Gets the HystrixThreadPoolMetrics instance for a given HystrixThreadPoolKey or null if none exists.

GetInstance ( HystrixThreadPoolKey key, ThreadPoolExecutor threadPool, IHystrixThreadPoolProperties properties ) : HystrixThreadPoolMetrics

Gets the HystrixThreadPoolMetrics instance for a given HystrixThreadPoolKey. If no metrics exists for the specified key, a new one will be created from the specified threadPool and setter.

MarkThreadCompletion ( ) : void

Marks the completion of a command execution.

MarkThreadExecution ( ) : void

Marks the beginning of a command execution.

비공개 메소드들

메소드 설명
HystrixThreadPoolMetrics ( HystrixThreadPoolKey threadPoolKey, ThreadPoolExecutor threadPool, IHystrixThreadPoolProperties properties ) : System.Collections.Concurrent

Initializes a new instance of the HystrixThreadPoolMetrics class.

SetMaxActiveThreads ( ) : void

Records the current number of active threads in the rolling number.

메소드 상세

GetInstance() 공개 정적인 메소드

Gets the HystrixThreadPoolMetrics instance for a given HystrixThreadPoolKey or null if none exists.
public static GetInstance ( HystrixThreadPoolKey key ) : HystrixThreadPoolMetrics
key HystrixThreadPoolKey Key of the tracked thread pool.
리턴 HystrixThreadPoolMetrics

GetInstance() 공개 정적인 메소드

Gets the HystrixThreadPoolMetrics instance for a given HystrixThreadPoolKey. If no metrics exists for the specified key, a new one will be created from the specified threadPool and setter.
public static GetInstance ( HystrixThreadPoolKey key, ThreadPoolExecutor threadPool, IHystrixThreadPoolProperties properties ) : HystrixThreadPoolMetrics
key HystrixThreadPoolKey Key of the tracked thread pool.
threadPool Java.Util.Concurrent.ThreadPoolExecutor The thread pool executor of the tracked pool.
properties IHystrixThreadPoolProperties The properties of the tracked pool.
리턴 HystrixThreadPoolMetrics

MarkThreadCompletion() 공개 메소드

Marks the completion of a command execution.
public MarkThreadCompletion ( ) : void
리턴 void

MarkThreadExecution() 공개 메소드

Marks the beginning of a command execution.
public MarkThreadExecution ( ) : void
리턴 void