Commander

public interface Commander implements CommandReceiver, EventReceiver

An interface common for objects that post one or more command in response to an incoming message.

Example of use case scenarios:

  • Converting a command into another (e.g. because of command API changes).
  • Splitting a command which holds data for a bigger aggregate into several commands set to corresponding aggregate parts.
  • Issuing a command in response to an event.
  • Posting a command to handle a rejection using a command posted on behalf of another user.

See also

@Command

Inheritors

Functions

Link copied to clipboard
public DoNothing doNothing()
Obtains the io.spine.server.model.

Inherited functions

Link copied to clipboard
public Nothing nothing()
Obtains the io.spine.server.model.
Link copied to clipboard
public abstract ImmutableSet<EventClass> producedEvents()
Obtains classes of the events produced by this object.
Link copied to clipboard
public abstract Any producerId()
The object identity packed into Any.
Link copied to clipboard
public abstract Version version()
The version of the object to be put into events.