QuerySchemaRefreshHandlerFunctionFactory

class QuerySchemaRefreshHandlerFunctionFactory(handlerKey: String, queryGateway: (AggregateMetadata<*, *>) -> QueryGateway<*>, revalidate: (AggregateMetadata<*, *>) -> Mono<Void>, exceptionHandler: RequestExceptionHandler, guard: HttpQueryGuard = HttpQueryGuard()) : AggregateRouteHandlerFunctionFactorySupport

Deprecated

Scheduled for removal in 10.0.0. Use the wowQuerySchema actuator endpoint.

POST …/snapshot/schema/refresh and POST …/event/schema/refresh, the 9.1 routes that reloaded a model's schema. 9.2 revalidates schemas through the wowQuerySchema actuator endpoint (and periodically); these routes stay so operators' scripts do not answer 404: each revalidates the route's model of the aggregate (completing once it is reloaded; concurrent calls share the reload in flight), then answers as GET …/schema. The handler key is Snapshot.SCHEMA_REFRESH or Event.SCHEMA_REFRESH.

Constructors

Link copied to clipboard
constructor(handlerKey: String, queryGateway: (AggregateMetadata<*, *>) -> QueryGateway<*>, revalidate: (AggregateMetadata<*, *>) -> Mono<Void>, exceptionHandler: RequestExceptionHandler, guard: HttpQueryGuard = HttpQueryGuard())