Quantcast
Viewing all articles
Browse latest Browse all 1367

Must EventSourcedBehavior.emptyState() return a new object?

Hello all,

I’m new to this forum. Greetings!

I’m using EventSourcedBehavior in Java.
When implementing the emptyState() method, does the method body need to create a new instance of the state, or is it ok to pass in the initial state as constructor parameter to EventSourcedBehavior?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1367

Trending Articles