Get the SortedMap relation between CorrelationId and DeliveryId for the given destination.
Get the SortedMap relation between CorrelationId and DeliveryId for the given destination.
Compute the next correlationId for the given destination.
Compute the next correlationId for the given destination.
The computation is just the biggest correlationId + 1 or 0 if no correlationId exists.
a new copy of State with the IdsPerDestination updated for destination using the newIdRelation.
a new copy of State with the new IdsPerDestination.
The simplest implementation of a State with DistinctIds. The is the default state used by a DistinctIdsOrchestrator.
It is not a case class so the user can extend it and implement more complex states.