QueryService

public final class QueryService

The QueryService provides a synchronous way to fetch read-side state from the server.

For asynchronous read-side updates please see SubscriptionService.

Types

Link copied to clipboard
public class Builder
The builder for a QueryService.

Functions

Link copied to clipboard
Creates a new builder for the service.
Link copied to clipboard
public void read(Query query, StreamObserver<QueryResponse> responseObserver)
Executes the passed query returning results to the passed observer.
Link copied to clipboard
public static QueryService withSingle(BoundedContext context)
Builds the service with a single Bounded Context.