This PR brings the following improvements that were previously introduced in ProtoData:
Just<E> tuple for one EventMessage. It's convenient to return in the places that need to return Iterable. Just<MyEvent> gives information about having only one event, which Iterable<MyEvent> cannot say.
Policy<E> — is a producer of event(s) in response to incoming event. Provides nice method whenever().
Querying<P> and QueryingClient<P> provide convenience methods for obtaining projection states. See QueryingClientSpec for details.
Other notable changes:
SingleCommandAssignee was introduced (as the result of writing test fixtures context for QueryingClientSpec).
BoundedContextBuilder got method addAssignee() which does the same as addCommandDispatcher() but is less mind-bending for people who did not participate in core-java development.
This PR brings the following improvements that were previously introduced in ProtoData:
Just<E>
tuple for oneEventMessage
. It's convenient to return in the places that need to returnIterable
.Just<MyEvent>
gives information about having only one event, whichIterable<MyEvent>
cannot say.Policy<E>
— is a producer of event(s) in response to incoming event. Provides nice methodwhenever()
.Querying<P>
andQueryingClient<P>
provide convenience methods for obtaining projection states. SeeQueryingClientSpec
for details.Other notable changes:
SingleCommandAssignee
was introduced (as the result of writing test fixtures context forQueryingClientSpec
).BoundedContextBuilder
got methodaddAssignee()
which does the same asaddCommandDispatcher()
but is less mind-bending for people who did not participate incore-java
development.