Package dk.cloudcreate.essentials.components.foundation.types
package dk.cloudcreate.essentials.components.foundation.types
-
ClassDescriptionA correlation id is used to link multiple Messages or Events together in a distributed systemAn Event id provides a unique identifier for an EventA message id provides a unique identifier for a Message in a distributed systemRandomId generator that either: Generates UUIDv1 time-based (i.e.A subscriber id is used to uniquely identify an event subscriberMarker interface for types that are used to distinguish between Tenant specific data in a data store.
A tenant can be as simple as aSingleValueTypeor it can be more complex such as including both Tenant-Id and aCountryCodedenoting the country where the Tenant data is owned.
The serialization of the tenant is always theObject.toString()value, and it is deserialized by using a default single string argument constructorSimple single valueTenantidentifier