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
CInvalidArgumentException
– Invalid capacity value.CInvalidArgumentException
– Empty callback handler specified.COutOfResourcesException
– No subscription available.CCommunicationErrorException
– Protocol error.CConnectionLostException
– Connection to controller lost.CRebootedException
– Controller has been rebooted since this object reference was retrieved, invalidating this reference.CObjectDestroyedException
– Object is destroyed.