StateSubscribingClass

public interface StateSubscribingClass

A class which can subscribe to updates of entity states.

A class can declare methods to receive updated states of entities from the same Bounded Context (“domestic” states), or states originated in another Bounded Context (“external” states).

Inheritors

Functions

Link copied to clipboard
public abstract ImmutableSet<StateClass> domesticStates()
Obtains domestic entity states to which the class is subscribed.
Link copied to clipboard
public abstract ImmutableSet<StateClass> externalStates()
Obtains external entity states to which the class is subscribed.
Link copied to clipboard
public boolean subscribesToStates()
Verifies if this class is subscribed to updates of entity states, either domestic or external.