C# 클래스 Apache.NMS.ActiveMQ.Util.MemoryUsage

Utility class for Tracking Memory Usage with an imposed limit on the amount available. Provides methods for objects to wait on more space to become available if the memory limit is reached.
파일 보기 프로젝트 열기: ThorTech/apache-nms 1 사용 예제들

공개 메소드들

메소드 설명
DecreaseUsage ( long value ) : void

Decrease the level of Usage.

EnqueueUsage ( long usage ) : void

Attempts to increase the amount of Memory Used, if non is available to fill then this method blocks until more is freed.

IncreaseUsage ( long value ) : void

Increase the level of Usage.

IsFull ( ) : bool

Checks if the Usage Windows has become full, is so returns true otherwise returns false.

MemoryUsage ( ) : System
MemoryUsage ( long limit ) : System
Stop ( ) : void
WaitForSpace ( ) : void

If no space is available then this method blocks until more becomes available.

WaitForSpace ( System.TimeSpan timeout ) : void

If no space is available then this method blocks until more becomes available or until the specified timeout expires.

메소드 상세

DecreaseUsage() 공개 메소드

Decrease the level of Usage.
public DecreaseUsage ( long value ) : void
value long /// A ///
리턴 void

EnqueueUsage() 공개 메소드

Attempts to increase the amount of Memory Used, if non is available to fill then this method blocks until more is freed.
public EnqueueUsage ( long usage ) : void
usage long /// A ///
리턴 void

IncreaseUsage() 공개 메소드

Increase the level of Usage.
public IncreaseUsage ( long value ) : void
value long /// A ///
리턴 void

IsFull() 공개 메소드

Checks if the Usage Windows has become full, is so returns true otherwise returns false.
public IsFull ( ) : bool
리턴 bool

MemoryUsage() 공개 메소드

public MemoryUsage ( ) : System
리턴 System

MemoryUsage() 공개 메소드

public MemoryUsage ( long limit ) : System
limit long
리턴 System

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

WaitForSpace() 공개 메소드

If no space is available then this method blocks until more becomes available.
public WaitForSpace ( ) : void
리턴 void

WaitForSpace() 공개 메소드

If no space is available then this method blocks until more becomes available or until the specified timeout expires.
public WaitForSpace ( System.TimeSpan timeout ) : void
timeout System.TimeSpan /// A ///
리턴 void