PeerEvents
class PeerEvents(contexts: List<ContextManifest>, classLoader: ClassLoader = PeerEvents::class.java.classLoader)
The events of the contexts a service knows, decoded into their api classes: an event of a published stream, context.aggregate.Event, is decoded into the class its context's contract names for it (#/$defs/<binary name>) when that class is on classLoader and the event is of the revision the contract declares; otherwise it is a PublishedEvent of its name, revision and JSON text. A matched class that does not decode the payload fails the handling, as a state that does not decode does.
Constructors
Link copied to clipboard
constructor(contexts: List<ContextManifest>, classLoader: ClassLoader = PeerEvents::class.java.classLoader)
Functions
Link copied to clipboard
events, a published stream's, each decoded into its api class or kept as a PublishedEvent.