CompositeQueryObserver

Several observers behind one: each callback reaches every delegate, a failing delegate is logged and does not stop the others, and audits are built when any delegate wants them.

Constructors

Link copied to clipboard
constructor(delegates: List<QueryObserver>)

Properties

Link copied to clipboard
open override val audits: Boolean

Whether this observer wants onAudit; the gateway builds audits only when one is wanted.

Functions

Link copied to clipboard
open override fun onAudit(audit: QueryAudit)

One QueryAudit per subscription, at its terminal signal.

Link copied to clipboard
open override fun onCancel(namedAggregate: NamedAggregate, queryType: QueryType)
Link copied to clipboard
open override fun onComplete(namedAggregate: NamedAggregate, queryType: QueryType)
Link copied to clipboard
open override fun onError(namedAggregate: NamedAggregate, queryType: QueryType, error: Throwable)