[akka-user] Re: Understanding tuning akka dispatchers (by Jami allan)

2017-10-18 Thread Rob Crawford
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

[akka-user] Re: Understanding tuning akka dispatchers (by Jami allan)

2017-10-18 Thread AL
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; >

[akka-user] Need of `onRecoveryCompleted` in akka typed for persistence

2017-10-18 Thread Yaroslav Klymko
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

Re: [akka-user] Need of `onRecoveryCompleted` in akka typed for persistence

2017-10-18 Thread Patrik Nordwall
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

Re: [akka-user] Need of `onRecoveryCompleted` in akka typed for persistence

2017-10-18 Thread Yaroslav Klymko
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