UNPKG

@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.

30 lines 960 B
import type { Codec } from "@ydbjs/api/topic"; import type { TopicPartitionSession } from "./partition-session.js"; type TopicMessageOptions = { partitionSession: TopicPartitionSession; producer: string; payload: Uint8Array; codec: Codec; seqNo: bigint; offset?: bigint; uncompressedSize?: bigint; createdAt?: number; writtenAt?: number; metadataItems?: Record<string, Uint8Array>; }; export declare class TopicMessage { readonly partitionSession: WeakRef<TopicPartitionSession>; readonly producer: string; readonly payload: Uint8Array; readonly codec: Codec; readonly seqNo: bigint; readonly offset?: bigint; readonly uncompressedSize?: bigint; readonly createdAt?: number; readonly writtenAt?: number; readonly metadataItems?: Record<string, Uint8Array>; constructor(options: TopicMessageOptions); get alive(): boolean; } export {}; //# sourceMappingURL=message.d.ts.map