Re: [akka-user] AtLeastOnceDelivery - mapping my own messageId to deliveryId possible?

2015-02-22 Thread Akka Team
Thanks a lot for noticing and pulling through with the PR (now merged)!

On Sun, Feb 15, 2015 at 2:04 PM, Paweł Kaczor pablo.kac...@gmail.com
wrote:

 I created a ticket: https://github.com/akka/akka/issues/16874
 and pull request: https://github.com/akka/akka/pull/16877

 Cheers,
 Pawel

 --
  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 akka-user+unsubscr...@googlegroups.com.
 To post to this group, send email to akka-user@googlegroups.com.
 Visit this group at http://groups.google.com/group/akka-user.
 For more options, visit https://groups.google.com/d/optout.




-- 
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

-- 
  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] AtLeastOnceDelivery - mapping my own messageId to deliveryId possible?

2015-02-15 Thread Paweł Kaczor
I created a ticket: https://github.com/akka/akka/issues/16874 
and pull request: https://github.com/akka/akka/pull/16877

Cheers,
Pawel

-- 
  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] AtLeastOnceDelivery - mapping my own messageId to deliveryId possible?

2015-02-06 Thread Akka Team
Hi Pawel,

What is the exact problem here? I am a bit slow today, so I might just have
missed the obvious, but explaining in detail would help :)

-Endre

On Wed, Feb 4, 2015 at 10:32 AM, Paweł Kaczor pablo.kac...@gmail.com
wrote:

 According to
 http://doc.akka.io/docs/akka/snapshot/scala/persistence.html#Relationship_between_deliver_and_confirmDelivery
 : A function can be created to map your own messageId to deliveryId,
 which may come from your own domain model. This function must keep track of
 which messageId have been acknowledged. Alternatively, the Persistence
 module provides a default sequence number implementation which can also be
 used as the deliveryId for messages. The default sequence increases
 monotonically, without gaps.

 I would like to be able to use my own deliveryId. It is not possible with
 current implementation (see code below).

 trait AtLeastOnceDelivery {

   private def nextDeliverySequenceNr(): Long = {...}

   def deliver(): Unit  = {
 ...
 val deliveryId = nextDeliverySequenceNr()
 ...
   }
 }

 Pawel

  --
  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 akka-user+unsubscr...@googlegroups.com.
 To post to this group, send email to akka-user@googlegroups.com.
 Visit this group at http://groups.google.com/group/akka-user.
 For more options, visit https://groups.google.com/d/optout.




-- 
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

-- 
  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] AtLeastOnceDelivery - mapping my own messageId to deliveryId possible?

2015-02-04 Thread Paweł Kaczor
According to 
http://doc.akka.io/docs/akka/snapshot/scala/persistence.html#Relationship_between_deliver_and_confirmDelivery
: A function can be created to map your own messageId to deliveryId, which 
may come from your own domain model. This function must keep track of which 
messageId have been acknowledged. Alternatively, the Persistence module 
provides a default sequence number implementation which can also be used as 
the deliveryId for messages. The default sequence increases monotonically, 
without gaps.

I would like to be able to use my own deliveryId. It is not possible with 
current implementation (see code below).

trait AtLeastOnceDelivery {

  private def nextDeliverySequenceNr(): Long = {...}

  def deliver(): Unit  = {
...
val deliveryId = nextDeliverySequenceNr()
...
  }
}

Pawel

-- 
  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.