@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.
25 lines • 1.06 kB
TypeScript
import { TopicMessage } from '../message.js';
import type { TopicPartitionSession } from '../partition-session.js';
import type { CodecMap } from '../codec.js';
import type { AsyncPriorityQueue } from '../queue.js';
import type { StreamReadMessage_FromClient, StreamReadMessage_ReadResponse } from '@ydbjs/api/topic';
export declare let _read: (ctx: {
readonly disposed: boolean;
readonly controller: AbortController;
readonly buffer: StreamReadMessage_ReadResponse[];
readonly partitionSessions: Map<bigint, TopicPartitionSession>;
readonly codecs: CodecMap;
readonly outgoingQueue: AsyncPriorityQueue<StreamReadMessage_FromClient>;
readonly maxBufferSize: bigint;
readonly freeBufferSize: bigint;
readonly readOffsets?: Map<bigint, {
firstOffset: bigint;
lastOffset: bigint;
}>;
readonly updateFreeBufferSize: (releasedBytes: bigint) => void;
}, options?: {
limit?: number;
waitMs?: number;
signal?: AbortSignal;
}) => AsyncIterable<TopicMessage[]>;
//# sourceMappingURL=_read.d.ts.map