RoutedQueryApi
class RoutedQueryApi(local: NodeQueryApi, peers: PeerClients, localStates: Set<Class<*>>) : TenantQueryApi
The service's NodeQueryApi: the models of a peer context peers reach over HTTP, any other in process through local; a state class of none of the node's models (localStates) is a peer's, found by its contract. Trusted queries are in process alone: a peer reads for a caller.
Functions
Link copied to clipboard
The queries of a subscription handler of a commit of tenantId: the local API's, which pins the tenant (TenantQueryApi.tenant), a peer's as this service's identity in that tenant (Caller.ofService): the handler reads for a commit of the service's own, not for whoever sent it.
Link copied to clipboard