UNPKG

@dolittle/sdk.events.handling

Version:

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

32 lines 1.78 kB
import { Logger } from 'winston'; import { ITenantServiceProviders } from '@dolittle/sdk.dependencyinversion'; import { ExecutionContext } from '@dolittle/sdk.execution'; import { Cancellation } from '@dolittle/sdk.resilience'; import { ITrackProcessors } from '@dolittle/sdk.services'; import { EventHandlersClient } from '@dolittle/contracts/Runtime/Events.Processing/EventHandlers_grpc_pb'; import { EventHandlerProcessor } from './Internal/EventHandlerProcessor'; import { IEventHandlers } from './IEventHandlers'; /** * Represents an implementation of {IEventHandlers}. */ export declare class EventHandlers extends IEventHandlers { private readonly _client; private readonly _executionContext; private readonly _services; private readonly _tracker; private readonly _logger; private readonly _pingInterval; /** * Initializes an instance of {@link EventHandlers}. * @param {EventHandlersClient} _client - The event handlers client to use. * @param {ExecutionContext} _executionContext - The base execution context of the client. * @param {ITenantServiceProviders} _services - For resolving services while handling requests. * @param {ITrackProcessors} _tracker - The tracker to register the started processors with. * @param {Logger} _logger - For logging. * @param {number} _pingInterval - The ping interval to configure the reverse call client with. */ constructor(_client: EventHandlersClient, _executionContext: ExecutionContext, _services: ITenantServiceProviders, _tracker: ITrackProcessors, _logger: Logger, _pingInterval: number); /** @inheritdoc */ register(eventHandlerProcessor: EventHandlerProcessor, cancellation?: Cancellation): void; } //# sourceMappingURL=EventHandlers.d.ts.map