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);

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun of(caller: Caller): JavaQueries

The queries caller may run (QueryApi.of).