Skip to content

DefaultBlockPoolMonitor Methods

Block pool monitor used as a default option in GeneratorStreamProvider and MemoryStreamProvider.

Report(long, long, long)

View source
public void Report(long totalMemoryInByte, long availableMemoryInByte, long claimedMemoryInByte)
Periodically report block pool status

Parameters

totalMemoryInBytelong
Total memory this block pool allocated.
availableMemoryInBytelong
Memory which is available for allocating to caches.
claimedMemoryInBytelong
Memory in use by caches.

TrackMemoryAllocated(long)

View source
public void TrackMemoryAllocated(long allocatedMemoryInByte)
Called when memory is newly allocated by the cache.

Parameters

allocatedMemoryInBytelong
The allocated memory, in bytes.

TrackMemoryReleased(long)

View source
public void TrackMemoryReleased(long releasedMemoryInByte)
Called when memory is released by the cache.

Parameters

releasedMemoryInBytelong
The released memory, in bytes.