@ydbjs/topic
Version:
YDB Topics client for publish-subscribe messaging. Provides at-least-once delivery, exactly-once publishing, FIFO guarantees, and scalable message processing for unstructured data.
24 lines • 1.05 kB
TypeScript
import type { StreamReadMessage_FromClient } from '@ydbjs/api/topic';
import type { Driver } from '@ydbjs/core';
import type { CodecMap } from '../codec.js';
import type { AsyncPriorityQueue } from '../queue.js';
/**
* Initialize custom codecs if provided in options
*/
export declare function _initialize_codecs(codecs: CodecMap, codecMap?: CodecMap): void;
/**
* Start background token refresher
* @param getOutgoingQueue - Getter function to get the current queue (since queue may be recreated on retry)
*/
export declare function _start_background_token_refresher(driver: Driver, outgoingQueue: AsyncPriorityQueue<StreamReadMessage_FromClient>, updateTokenIntervalMs: number, signal: AbortSignal): Promise<void>;
/**
* Create disposal functions for readers
*/
export declare function _create_disposal_functions<T extends {
close(): Promise<void>;
destroy(reason?: Error): void;
}>(reader: T, readerType: string): {
[Symbol.dispose](): void;
[Symbol.asyncDispose](): Promise<void>;
};
//# sourceMappingURL=_shared.d.ts.map