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
NullArgumentException
– Null reference was passed.InvalidArgumentException
– Invalid capacity value.OutOfResourcesException
– No subscription available.CommunicationErrorException
– Protocol error.ConnectionLostException
– Connection to controller lost.RebootedException
– Controller has been rebooted since this object reference was retrieved, invalidating this reference.System.ObjectDisposedException
– Object is disposed.