public interface EventProducer
Modifier and Type | Method and Description |
---|---|
default io.spine.server.model.Nothing |
nothing()
Obtains the
Nothing event message. |
com.google.common.collect.ImmutableSet<EventClass> |
producedEvents()
Obtains classes of the events produced by this object.
|
com.google.protobuf.Any |
producerId()
The object identity packed into
Any . |
io.spine.core.Version |
version()
The version of the object to be put into events.
|
com.google.protobuf.Any producerId()
Any
.io.spine.core.Version version()
If empty, no version will be added to the generated events.
default io.spine.server.model.Nothing nothing()
Nothing
event message.
This event should be returned if there is no value for the domain to produce an actual
event. Note that a Nothing
event is never actually posted into
the EventBus
.
Nothing
com.google.common.collect.ImmutableSet<EventClass> producedEvents()