SubscribeRemainingCapacity

ISubscription ILogReader.SubscribeRemainingCapacity(double capacity, LogReaderRemainingCapacityHandler handler)

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 delegate is to be executed ([0-1]).

  • handler – Delegate to be invoked when capacity is reached.

Returns

ISubscription – An ISubscription for the callback.

Throws