@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.
47 lines • 1.4 kB
TypeScript
export declare class TopicPartitionSession {
#private;
/**
* Partition session identifier.
*/
readonly partitionSessionId: bigint;
/**
* Partition identifier.
*/
readonly partitionId: bigint;
/**
* Topic path.
*/
readonly topicPath: string;
/**
* Partition offsets.
*/
partitionOffsets: {
start: bigint;
end: bigint;
};
/**
* Offset of the last committed message from the partition.
*/
partitionCommittedOffset: bigint;
/**
* Start offset for the next commit range.
* Initialized from server's committedOffset in StartPartitionSessionRequest.
* Updated after each commit to the end of committed range.
*
* This fills gaps between committedOffset and first message offset
* when messages are deleted by retention policy.
*/
nextCommitStartOffset: bigint;
/**
* Creates a new instance of TopicPartitionSession.
* @param partitionSessionId - The identifier of the partition session.
* @param partitionId - The identifier of the partition.
* @param topicPath - The path of the topic.
*/
constructor(partitionSessionId: bigint, partitionId: bigint, topicPath: string);
get isStopped(): boolean;
get isEnded(): boolean;
stop(): void;
end(): void;
}
//# sourceMappingURL=partition-session.d.ts.map