AggregateRouteMetadata

data class AggregateRouteMetadata<C : Any>(val enabled: Boolean, val aggregateMetadata: AggregateMetadata<C, *>, val resourceName: String, val spaced: Boolean, val owner: AggregateRoute.Owner) : EnabledCapable, Metadata

The routing of an aggregate, parsed from its AggregateRoute. It shapes both the route contracts and the HTTP adapter at runtime.

Type Parameters

C

the command aggregate type.

Constructors

Link copied to clipboard
constructor(enabled: Boolean, aggregateMetadata: AggregateMetadata<C, *>, resourceName: String, spaced: Boolean, owner: AggregateRoute.Owner)

Properties

Link copied to clipboard

the aggregate the routes serve.

Link copied to clipboard
open override val enabled: Boolean

whether the aggregate has routes at all.

Link copied to clipboard

the ownership policy of the routes.

Link copied to clipboard

the resource segment of the routes.

Link copied to clipboard

AggregateMetadata.spaced, the aggregate's own flag: whether its routes take a space from the request (Wow-Space-Id). Only a spaced aggregate has a space written to its commands or its queries scoped by space; for any other aggregate the adapter ignores the header.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int