On Tue, Jul 1, 2014 at 6:18 PM, Olger Warnier <ol...@spectare.nl> wrote:

>
> On Tue, Jul 1, 2014 at 6:05 PM, Patrik Nordwall <patrik....@gmail.com>
>> wrote:
>>
>>> Let's continue with questions at akka-user.
>>> /Patrik
>>>
>> Good idea... The groups interface confuses me once in a while.
>
>>
>>>
>>> On Tue, Jul 1, 2014 at 5:53 PM, Olger Warnier <ol...@spectare.nl> wrote:
>>>
>>>> Nice, thanks :)
>>>>
>>>> A small question, the EventsourcedProcessor will be replaced by the
>>>> PersistentProcessor (as my compile messages tell me :) )
>>>> It seems that it's not available in the 2.3.4 source, is that right ?
>>>>
>>>> The documentation states the use of the PersistentActor instead of the
>>>> PersistentProcessor.
>>>> With my assumption that this is not in 2.3.4 and will be created, what
>>>> will be the difference ?
>>>>
>>>
>> That is a typo in the deprecation message. It is supposed to be
>> PersistentActor. It is the replacement for both Processor and
>> EventsourcedProcessor.
>>
> Good to know, I'll move to the actor then.
>
>>
>>
>>>
>>>> Next to that, I am using the EventsourcedProcessor with ClusterSharding
>>>> and use the default processorId. Found a nice mention on how to get
>>>> persistenceId work in the same way, but maybe there is a way to have the
>>>> created PersistenceProcessor/Actor make use of a constructor that sets the
>>>> proper ID (and not to be dependent on the actorPath) Any hints where this
>>>> is done ? (and if it's possible to manipulate it ?) (My structure is
>>>> similar as the akka cluster sharding activator template.
>>>>
>>>
>> I would recommend:
>>   // self.path.parent.name is the type name (utf-8 URL-encoded)
>>   // self.path.name is the entry identifier (utf-8 URL-encoded)
>>   override def persistenceId: String = self.path.parent.name + "-" +
>> self.path.name
>>
> Any reason you like to see the parent name inside the Id ? (I'll play
> around with it, but wondering if you have a specific reason for doing so)
>
>

To make it unique across different types. E.g. BlogPost("12) must not clash
with User("12").
If your ids are are already unique among all PersistentActor instances in
your system you can use the plain id.

/Patrik


>
>> Regards,
>> Patrik
>>
>
> Thanks for your reply,
> Olger
>
>>
>>   --
> >>>>>>>>>> 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.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      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.

Reply via email to