Akka.Actor: IStash
improvements - programmatic bounded stash configuration and stash capacity APIs
#6658
Closed
2 tasks done
Labels
Milestone
IStash
APIs to track whether there's any content inside theIStash
at allProps
Is your feature request related to a problem? Please describe.
I'm working on a prototype of reliable delivery for Akka.NET #4720 over at https://github.com/Aaronontheweb/Aaron.Akka.ReliableDelivery, and stashing is pretty integral to how the
ConsumerController
manages confirmations for both push and pull-based deliveries.Unfortunately, we're missing some important APIs I need to complete the job over there:
IStash,IsEmpty
- is there anything inside the stash I need to process first?IStash.Count
- how many messages are left inside the stash?Describe the solution you'd like
Expand the
IStash
interface to some new properties:That will help give me the ability to reason about working with bounded stashes internally inside these actors.
In addition to that, I would like to add
StashSize
as a property that can be set viaProps
on actors. That way, this can be configured programmatically or via HOCON.cc @ismaelhamed
The text was updated successfully, but these errors were encountered: