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.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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