SubscribeRemainingCapacity

virtual PSubscription ILogReader::SubscribeRemainingCapacity(double capacity, LogReaderRemainingCapacityHandler handler) = 0

Subscribes a callback to be executed when the remaining capacity of the log buffer reaches or drops below the specified value.

Parameters
  • capacity – Remaining capacity of the log buffer as factor of the maximum buffer capacity at or below which callback is to be executed ([0-1]).

  • handler – Function to be called when capacity is reached.

Returns

PSubscription – An ISubscription for the callback.

Throws