JavaQueryApi
The QueryApi for Java callers: the same queries, in process or a peer's over HTTP, each blocking or asynchronous (JavaFlows), lists as Lists and resumable streams as Streams.
JavaTenantSnapshotQueries<OrderState> orders = JavaQueryApi.of(queryApi).of(caller).snapshots(OrderState.class);
List<Snapshot<OrderState>> open = orders.list(ListQuery.of(MatchAllFilter.INSTANCE));
Snapshot<OrderState> order = orders.state("order-1"); // null when there is none
// Read your writes: at version 3, the one the command answered, or later.
Snapshot<OrderState> placed = orders.state("order-1", 3);Content copied to clipboard
Inheritors
Functions
Link copied to clipboard
The queries caller may run (QueryApi.of).