Skip to content

ObjectPoolMonitorBridge Methods

ObjectPoolMonitor report metrics for ObjectPool, which are based on object count. BlockPoolMonitor report metrics for BlockPool, which are based on memory size. These two monitor converge in orleans cache infrastructure, where ObjectPool is used as block pool to allocate memory, where each object represent a block of memory which has a size. ObjectPoolMonitorBridge is the bridge between these two monitors in cache infrastructure. When ObjectPoolMonitor is reporting a metric, the user configured BlockPoolMonitor will call its counterpart method and reporting metric based on the math: memoryInByte = objectCount*objectSizeInByte

Report(long, long, long)

View source
public void Report(long totalObjects, long availableObjects, long claimedObjects)
Called to report object pool status.

Parameters

totalObjectslong
Total size of object pool.
availableObjectslong
Count for objects in the pool which is available for allocating.
claimedObjectslong
Count for objects which are claimed, hence not available.