RouteCall

interface RouteCall

A call of a service route (me.ahoo.wow.api.annotation.ServiceRoute) as admission let it through: who calls, in which tenant and scope, under which request id, and the commands the handler may send and the queries it may run as that caller. A handler sees no HTTP request, as a decide function sees none: it is tested by calling it with a call of its own.

Properties

Link copied to clipboard
abstract val caller: Caller

The authenticated caller.

Link copied to clipboard
abstract val commands: CommandClient

The commands the handler sends as caller, such as a relay of the caller's command to the service of it.

Link copied to clipboard
abstract val queries: Queries

The queries the handler runs as caller, the caller it acts for (me.ahoo.wow.api.read.QueryApi.of): what that caller may see, of this node's models in process and of a peer's over HTTP, never more.

Link copied to clipboard
abstract val requestId: String

The request's id (Wow-Request-Id), or a new one.

Link copied to clipboard
abstract val scope: Scope

The scope the call acts in: the caller's own, or the one its Wow-Scope targets when it may act elsewhere.

Link copied to clipboard
abstract val tenantId: String

The tenant the call acts in, as the tenant policy admitted it.