What do you believe he meant?
On Wednesday, October 18, 2017 at 11:09:45 AM UTC-4, AL wrote:
>
> Thanks,
> The scala API is different. but I am not sure that this is what he meant
>
> On Tuesday, October 17, 2017 at 4:34:17 PM UTC+3, Rob Crawford wrote:
>>
>> With the Java API, something like
Thanks,
The scala API is different. but I am not sure that this is what he meant
On Tuesday, October 17, 2017 at 4:34:17 PM UTC+3, Rob Crawford wrote:
>
> With the Java API, something like this:
>
> public class ComputeIntensiveChild extends AbstactActor {
> private final ActorRef realParent;
>
Hi guys,
Not sure this is the right place to ask:
I'm looking into akka typed for persistence and wondering whether we really
need onRecoveryCompleted at
https://github.com/akka/akka/blob/master/akka-typed/src/main/scala/akka/typed/persistence/scaladsl/PersistentActor.scala#L174
Why not just
Do you suggest something like this?
def immutable[Command, Event, State](
persistenceId: String,
initialState: State,
actions: State => Actions[Command, Event, State],
applyEvent:(Event, State) ⇒ State): PersistentBehavior[Command,
Event, State]
I it would be rather
I think renaming
actions: State => Actions[Command, Event, State]
to
onRecoveryCompleted: State => Actions[Command, Event, State]
Makes it really clear. Also you might just decide to stop the actor in case
the state is wrong, etc.
On Wednesday, October 18, 2017 at 10:22:12 PM