Jonathan, Any luck with your above requirement ?

On Monday, November 11, 2013 at 2:32:07 PM UTC-8, Jonathan Uptmore wrote:
>
> I'm evaluating Akka for a specific use case in which I need to be able to 
> perform the mailbox features below.
>
> 1. Query (or get all) messages with a specific sender in a mailbox
> 2. Read or inspect the state of messages in a mailbox (which have not been 
> processed by the consumer actor)
> 3. Remove or delete messages from a mailbox so the consumer actor does not 
> process the messages
>
> Other desirable but not required features of a mailbox are:
>
> 4. Order messages to be processed by a common attribute of type long. 
>  This attribute controls the sequence.  For example, value of 1 should be 
> processed before value of 3.  I would like this order to apply to all 
> messages in the consumer's mailbox not just messages from a particular 
> sender.  I understand that this could cause starvation or indefinitely keep 
> messages at the end of the sequence.  This is desired behavior.
> 5. Process messages by priority - typical low, medium, high type of 
> priority
> 6. Keep copies of sent messages and mark them as sent - I could possibly 
> use Akka Persistence (aka eventsourced) and these features would be best 
> provided through a mailbox API in my case
> 7. Read and delete sent messages
>
> Assumptions: Assume that each mailbox is a single consumer mailbox and not 
> used with a BalancingDispatcher. No actor can read or change the mailbox of 
> another actor.  An actor may read or change its mailbox while processing a 
> message in its onReceive method.
>
> http://letitcrash.com/post/17707262394/why-no-mailboxsize-in-akka-2 provides 
> some good details that hint at how to implement the features I'm seeking 
> with Akka Extensions and custom mailbox implementations.  Can someone 
> please elaborate on the implementation details to provide the features I 
> need?  It is not clear how to get the mailbox instance or reference from 
> the actor or an extension. I plan to use Akka Java 2.3.
>
> Thanks,
> Jonathan 
>
>
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to