@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
21 lines (16 loc) • 744 B
text/typescript
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import { Cancellation } from '@dolittle/sdk.resilience';
import { ProjectionProcessor } from './Internal/ProjectionProcessor';
/**
* Defines the system for projections.
*/
export abstract class IProjections {
/**
* Register a a projection.
* @template T Type of the readmodel.
* @param {ProjectionProcessor} projectionProcessor - Projection processor to register.
* @param {Cancellation} cancellation - Used to close the connection to the Runtime.
*/
abstract register<T>(projectionProcessor: ProjectionProcessor<T>, cancellation?: Cancellation): void;
}