core-java
core-java copied to clipboard
Commander methods on behalf of another user
Now we user the ActorContext
of incoming message for obtaining a user ID on behalf of whom a command would be generated.
We need to support a way for setting another user ID via the following construct:
actOnBehalf(userId, () -> { return MyCommandMessage.newBuilder() ... .build(); } );