Overview

The following writers exist:

  • StateWriter
  • EventWriter

StateWriter

This entity is used to publish State information. It provides the following operations:

  • write(data: T) writes a data value to the Topic. There is no distinction between creating an instance on a Topic and updating the instance with a new value. Instance creation is simply implied by the fact that no value with the same Key field values has been written to this Topic in the past.
  • remove(data: T) removes an instance from the Topic. This operation only takes the Key fields of the Data Type into account; all other field values are ignored.

EventWriter

This entity is used to publish Events. It provides only one operation:

  • write(data: T) writes an event value of type T to the Topic.

As Event Data Types do not have Keys, there are no instances on the Topic: all publications are considered to be one flat stream of events. Therefore, it does not make sense to have a remove operation on an EventWriter.