RoutedQueryApi

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.

Constructors

Link copied to clipboard
constructor(local: NodeQueryApi, peers: PeerClients, localStates: Set<Class<*>>)

Functions

Link copied to clipboard
open override fun of(caller: Caller): Queries
Link copied to clipboard
open override fun tenant(tenantId: String): SubscriptionQueries

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
open override fun trusted(): TrustedQueries