Package-level declarations

Types

Link copied to clipboard
fun interface CommandCaller

The client of the other contexts' HTTP command gateways, which the host gives a node, a port the runtime consumes and wow-client's HttpCommandCaller implements: it sends a call to the gateway of its command's context, at the address the host configures for it, and returns the result the target answers, at COMMITTED: SUCCEEDED, REJECTED or FAILED. It throws a WowProblemException when it reaches no result (the target down, unreachable or late, no address for the context), retryable with the same request id.

Link copied to clipboard

Finds the command being decided in a coroutine whose context does not hold it as an element: one a decide function started on its own, whose context carries the command another way. wow-reactor carries it in the Reactor context of the publisher a decide function returns, which the coroutine of a mono { } it built reads (#7046). Found with ServiceLoader, from a module's META-INF/services/me.ahoo.wow.spi.call.DecidingCarrier; asked only for a command sent with no request id of its own where no element is found, quickly and without blocking.

Link copied to clipboard

The command a decide function is deciding, by its aggregate ref and its requestId, in its coroutine context while it decides: one for each execution of the command, every attempt of it included (nextAttempt).

Link copied to clipboard
class OutgoingCall @InternalWowApi constructor(val type: String, val command: Command<*>, val wait: WaitContext? = null, val actingTenant: String? = null)

One synchronous call to another context's command gateway: command, of the full type name type (context.aggregate.Command), with the wait context a wait that follows the calling saga goes on with, or null. The command carries the root command's scope, operator and causation, which the client asserts on the target's internal port, naming its service. actingTenant is the tenant the calling saga's execution acts for (its commit's, receipt's or job instance's), which the target decides the tenant of its type from; null when it is not known, the tenant the command's ref names then counting as named.

Functions

Link copied to clipboard

The request id of request, a command a client sends in this context: its own (CommandRequest.requestId), else the next of the command being decided (DecidingCommand.nextRequestId, found by DecidingCommand.decidingIn), else null, for the client to choose.