C# (CSharp) Orleans.KafkaStreamProvider.KafkaQueue.TimedQueueCache TimedQueueCache - 11 examples found. These are the top rated real world C# (CSharp) examples of Orleans.KafkaStreamProvider.KafkaQueue.TimedQueueCache.TimedQueueCache extracted from open source projects. You can rate examples to help us improve the quality of examples.
The TimedQueueCache works similarly to the SimpleQueueCache but it also has a Timespan which is used as an expiration and retention time. I.e, only items that expire their Timespan (and were consumed by all cursors of course) are allowed to be removed from the cache. That way the cache always guarantees to hold all the items that were inserted in a certain Timespan (for example if the Timespan is 1 hour, all the messages that were inserted in the last hour will remain in the cache, with no regard if they were consumed or not). The TimedQueueCache also offers to hold a callback for when items are being removed from the cache and also allows to define an interval for how many items need to be removed before the callback is called.