Package-level declarations

Types

Link copied to clipboard

SPI for streaming transactions into a database from an upstream feed (a CDC source, message log, etc.) instead of XTDB's own DML.

Link copied to clipboard

Opaque resume marker (e.g. a serialised log offset) that XTDB persists per tx and hands back on resume.

Link copied to clipboard
class OpenTx @JvmOverloads constructor(allocator: BufferAllocator, nodeBase: NodeBase, dbStorage: DatabaseStorage, dbState: DatabaseState, val txKey: TransactionKey, val externalSourceToken: ExternalSourceToken?, tracer: Tracer? = null, resolvedTxs: List<ResolvedTx> = emptyList()) : AutoCloseable

The per-transaction write/read handle passed to an external-source writer.

Link copied to clipboard
interface TxIndexer

Per-tx entry point for external sources. The source provides tx metadata + a writer that populates the OpenTx and returns a TxResult indicating success or failure (with optional userMetadata — the source can decide metadata after writing, not before).