Stand
A bridge which connects QueryService and SubscriptionService with a Read-side of a Bounded Context.
Each BoundedContext contains only one instance of Stand
.
The Stand
is responsible for obtaining results of queries sent by the QueryService.
The Stand
also manages creation of subscriptions, their activation, and delivering updates to the subscribers when requested by the SubscriptionService.
See also
<a href="https://spine. io/docs/concepts/diagrams/spine-architecture-diagram-full-screen. html">
Spine Architecture Diagram
Functions
Link copied to clipboard
public void activate(Subscription subscription, SubscriptionCallback callback, StreamObserver<Response> responseObserver)
Activates the subscription created via subscribe() method.
Link copied to clipboard
Obtains the bus listener which propagates all events and state updates to subscriptions.
Link copied to clipboard
Reads all Aggregate entity types exposed for reading by this instance of
Stand
.Link copied to clipboard
Reads all event types produced by the repositories associated with this
Stand
.Link copied to clipboard
Reads all Entity types exposed for reading by this instance of
Stand
.Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Registers the passed
EventProducer
as the event type supplier.Registers the passed
Repository
as an entity/event type supplier.