ObjectPoolMonitorBridge
class
Namespace: Orleans.Providers.Streams.Common
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
public class ObjectPoolMonitorBridge : IObjectPoolMonitorConstructors
ObjectPoolMonitorBridge(IBlockPoolMonitor, int)Initializes a new instance of theObjectPoolMonitorBridgeclass.
Methods
Report(long, long, long)Called to report object pool status.TrackObjectAllocatedCalled every time when an object is allocated.TrackObjectReleasedCalled every time an object was released back to the pool.
