xtdb.api.log.TxLog.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xtdb-core Show documentation
Show all versions of xtdb-core Show documentation
An open source document database with bitemporal graph queries
package xtdb.api.log
import xtdb.api.TransactionKey
import java.nio.ByteBuffer
import java.util.concurrent.CompletableFuture
interface TxLog {
fun appendTx(record: ByteBuffer): CompletableFuture
fun readTxs(afterTxId: Long?, limit: Int): List
fun subscribeTxs(afterTxId: Long?, subscriber: Subscriber)
class Record(val txKey: TransactionKey, val record: ByteBuffer)
interface Subscriber {
fun onSubscribe(closeHook: AutoCloseable)
fun accept(t: Record)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy